Ant integration with Ant 1.8.0 is broken
----------------------------------------
Key: JRUBY-4642
URL: http://jira.codehaus.org/browse/JRUBY-4642
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.5
Environment: Windows 7, Ant 1.8.0, Sun Java 6 (and also on Oracle
JRockIt 3.1.2-1.6.0)
Reporter: Hiro Asari
Priority: Critical
On the trunk, 'ant spec' (or more precisely, 'rake spec:ci_18') fails with this
exception from Ant:
{noformat}
C:\Users\asari\Documents\Development\jruby>ant spec
Buildfile: C:\Users\asari\Documents\Development\jruby\build.xml
init:
jar:
init:
extract-rdocs:
prepare:
prepare-resources:
[copy] Copying 5 files to
C:\Users\asari\Documents\Development\jruby\build\classes\jruby
compile-annotation-binder:
[javac] C:\Users\asari\Documents\Development\jruby\build.xml:184: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to
false for repeatable builds
check-for-optional-java4-packages:
check-for-optional-packages:
compile-jruby:
[apt] C:\Users\asari\Documents\Development\jruby\build.xml:197: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to
false for repeatable builds
[apt] Since compiler setting isn't classic or modern, ignoring fork
setting.
compile:
generate-method-classes:
_gmc_internal_:
generate-unsafe:
_gu_internal_:
unzip-native-libs:
jar-jruby:
_update_scm_revision_:
_update_scm_revision_with_ruby_:
_update_scm_revision_with_jruby_:
[echo] Using JRuby to calculate revision...
[echo] Adjust ruby.executable value in build.properties to speed things up!
[java] JVM args ignored when same JVM is used.
[jar] Building jar:
C:\Users\asari\Documents\Development\jruby\lib\jruby.jar
spec:ci_18:
[echo] Running rake spec:ci_18
[echo] compile=OFF, threshold=20, objectspace=true threadpool=false
reflection=false
[java] (in C:/Users/asari/Documents/Development/jruby)
[java] rake aborted!
[java] org.apache.tools.ant.BuildException: Could not create type
pathelement as the class class org.apache.tools.ant.types.Path$PathElement has
no compatible constructor
[java]
[java] (See full trace by running task with --trace)
BUILD FAILED
C:\Users\asari\Documents\Development\jruby\build.xml:1064: The following error
occurred while executing this line:
C:\Users\asari\Documents\Development\jruby\build.xml:1029: Java returned: 1
Total time: 1 minute 27 seconds
{noformat}
Downgrading Ant to 1.7.1 fixes the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email