| Summary: | ant not using jars in ~/.ant/lib | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Scott Shambarger <scott-fedora> |
| Component: | ant | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | akurtako, extras-orphan, java-sig-commits, mizdebsk, mmatejov |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-07 09:41:20 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Scott Shambarger
2012-01-07 03:36:31 UTC
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. I am not able to reproduce this bug -- ant was able to use libraries in ~/.ant/lib as expected (see below).
This problem may specific to maven-ant-tasks, which is known to be broken (maven-ant-tasks doesn't work with current version of maven shipped with Fedora). You can consider using aether-ant-tasks instead (not yet packaged for Fedora, but the work is in progress, see #817533).
$ cat /etc/fedora-release
Fedora release 16 (Verne)
$ ant -version
Apache Ant(TM) version 1.8.2 compiled on July 6 2011
$ ls -go
total 8
-rw-rw-r--. 1 91 May 7 11:23 build.xml
-rw-rw-r--. 1 29 May 7 11:27 foo.java
$ cat build.xml
<project>
<target name="foo">
<javac srcdir="." destdir="."/>
</target>
</project>
$ cat foo.java
class foo { int x = bar.y; }
$ find ~/.ant/lib
/home/kojan/.ant/lib
/home/kojan/.ant/lib/bar.jar
$ jar tf ~/.ant/lib/bar.jar
META-INF/
META-INF/MANIFEST.MF
bar.class
$ ant foo
Buildfile: /home/kojan/temp/ant-bug/build.xml
foo:
[javac] /home/kojan/temp/ant-bug/build.xml:3: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/kojan/temp/ant-bug
BUILD SUCCESSFUL
Total time: 3 seconds
$ rm ~/.ant/lib/bar.jar
$ rm foo.class
$ ant foo
Buildfile: /home/kojan/temp/ant-bug/build.xml
foo:
[javac] /home/kojan/temp/ant-bug/build.xml:3: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/kojan/temp/ant-bug
[javac] foo.java:1: cannot find symbol
[javac] symbol : variable bar
[javac] location: class foo
[javac] class foo { int x = bar.y; }
[javac] ^
[javac] 1 error
BUILD FAILED
/home/kojan/temp/ant-bug/build.xml:3: Compile failed; see the compiler error output for details.
|