ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44900] Using ant java api: Exec: Nested args are not passed to task
Date Tue, 29 Apr 2008 09:17:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44900





--- Comment #2 from Xavi <ettikx@gmail.com>  2008-04-29 02:17:43 PST ---
Hi,

1) ok.
2) /usr/bin/sh is the normal location for sh in AIX.
3) ops, it searches for task xml, its hardcoded in TestAnt.java. And the same
with log4j, the location of log file it's in log4j.properties.

So, must I create another testcase with changes, or you can do the changes
manually?

thanks.


(In reply to comment #1)
> Thanks for the rar file.
> 
> I have changed the summary to reflect the fact that
> this is seem only when using the java api.
> 
> There is a number of problems with the .rar file.
> 
> 1) it is a rar file - use tar.gz or zip
> 2) it is not selfcontained - the launch.sh and build.sh
>    refer to jar files in variosu places, also they use /usr/bin/sh
>    which is not a normal localtion for sh.
> 3) sh build.sh works, but sh launch.sh looks for files outside
>    the directory and fails.
> 
> new launch.sh
> -------
> CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-antlr.jar:$ANT_HOME/ant-launcher.jar:commons-lang.jar:log4j.jar:.
> java -cp $CLASSPATH TestAnt
> -------
> new build.sh
> ------------
> CLASSPATH=$ANT_HOME/lib/ant.jar:$ANT_HOME/lib/ant-antlr.jar:$ANT_HOME/lib/ant-launcher.jar:commons-lang.jar:log4j.jar:.
> javac -Xlint:unchecked -cp $CLASSPATH Log4jAntListener.java
> javac -Xlint:unchecked -cp $CLASSPATH AntProcess.java
> javac -Xlint:unchecked -cp $CLASSPATH TestAnt.java
> --------
> 
> I copied in log4j.jar (shudder) and commons-lang.jar into the directory.
> 
> The failure when running launch is:
> 
> [preilly@localhost bug44900-exec]$ sh launch.sh
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /tests/testant/testant.log (No such file or
> directory)
>         at java.io.FileOutputStream.openAppend(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>         at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
>         at
> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
>         at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
>         at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
>         at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
>         at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
>         at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
>         at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
>         at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
>         at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
>         at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
>         at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
>         at org.apache.log4j.Logger.getLogger(Logger.java:105)
>         at TestAnt.main(TestAnt.java:7)
> Exception in thread "main" java.lang.IllegalArgumentException: build file not
> found! /Harvest/pruebas/Xavi/bugant/permisions.xml
>         at AntProcess.setBuild(AntProcess.java:79)
>         at AntProcess.<init>(AntProcess.java:42)
>         at TestAnt.main(TestAnt.java:17)
> 


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message