Re: Ant and Java Forking

2009-10-13 Thread David Nemer
I JUST FOUND THE SOLUTION! Set the ant-junit.jar in your classpath! Life is so good again!!! -- David Nemer Sent from Frankfurt Am Main, HE, Germany On Tue, Oct 13, 2009 at 6:08 PM, David Nemer wrote: > Somehow I think it has to do with the fork="true" forkmode="once"

Re: Ant and Java Forking

2009-10-13 Thread David Nemer
} -- David Nemer Sent from Frankfurt Am Main, HE, Germany On Tue, Oct 13, 2009 at 4:12 PM, David Nemer wrote: > In the line p.executeTarget(p.getDefaultTarget()); > I have p.executeTarget

Re: Ant and Java Forking

2009-10-13 Thread David Nemer
need to check out a > project, build it, test it (with ant) and run the javalanche.xml thru ant. > > > Do you mean the same JVM?? > I was just wondering since I'm calling ant from a Java process if there is > a problem to call a JVMARG (which is another java process). I don&#x

Re: Ant and Java Forking

2009-10-13 Thread David Nemer
ut a project, build it, test it (with ant) and run the javalanche.xml thru ant. > Do you mean the same JVM?? I was just wondering since I'm calling ant from a Java process if there is a problem to call a JVMARG (which is another java process). I don't really know, i was just wondering if t

Ant and Java Forking

2009-10-11 Thread David Nemer
ly) and call this target (test-javalanche) is because they both use JVM. If it is, does anyone suggest a solution? -- David Nemer

Re: ANT.jar calling Targets not properly

2009-10-08 Thread David Nemer
I just tested it again, and the arguments to ${javalanche.arg.line} is passed all right, so I don't know why it wont run the test-javalanche properly. -- David Nemer Sent from Frankfurt Am Main, HE, Germany On Thu, Oct 8, 2009 at 11:13 AM, David Nemer wrote: > Hi Guys, > > I&

ANT.jar calling Targets not properly

2009-10-08 Thread David Nemer
lanche.xml _scanProject" it runs perfectly. I'm not sure if javalanche.arg.line is passed to test-javalanche. Any thoughts on how to call the target right?? Cheers, -- David Nemer Sent from Frankfurt Am Main, HE, Germany

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
auncher.jar:${ANT_HOME}/ lib/ant-nodeps.jar:${ANT_HOME}/lib/ant-antlr.jar 24 25 -- David Nemer Sent from Kaiserslautern, RP, Germany On Mon, May 18, 2009 at 10:57 PM, Cole, Derek E wrote: > Can you post what you have your actual system path and classpath set to? > > > -O

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
] Created dir: /scratch2/nemer/test/xfire/xfire-core/target/classes [javac] Compiling 225 source files to /scratch2/nemer/test/xfire/xfire-core/target/classes BUILD SUCCESSFUL Total time: 32 seconds But I still get that error msg that JAVA_HOME is not pointed to a JDK Java. -- David Nemer Sent

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
uot;, "Unable to find a javac compiler"); } else{ db.insertBuildData(Integer.toString(revisionNumber), "NO", e.toString()); } } -- David Nemer Sent from Kaiserslautern, RP, Germany On Mon, May 18, 2009 at 3:33 PM, Cole, Derek E w

Re: Java in JDK but ANT can't find it!

2009-05-18 Thread David Nemer
Ant(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 3 minutes 24 seconds ne...@kubrick:/scratch2/nemer/test/xfire$ -- David Nemer Sent from Kaiserslautern, RP, Germany On Mon, Ma

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
Just a remark, when I run the application and /opt/jdk1.6.0_06/lib/tools.jar to the classpath. It gives me a different error message: "Compile failed; see the compiler error output for details." there is no error msg and it still says BUILD SUCCESSFUL -- David Nemer Sent from Kaisersl

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
u have any idea how would I code this?? Make Ant ran in another JVM? -- David Nemer Sent from Kaiserslautern, RP, Germany On Sat, May 16, 2009 at 9:03 PM, Michael Ludwig wrote: > David Nemer schrieb am 16.05.2009 um 20:51:31 (+0200): > > > ne...@kubrick:~$ java -jar > /home/nem

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
/java -jar /home/nemer/apache-ant-1.7.1/lib/ant-launcher.jar -version Apache Ant version 1.7.1 compiled on June 27 2008 so just running JAVA worked as well as running /opt/jdk1.6.0_06/bin/java -- David Nemer Sent from Kaiserslautern, RP, Germany On Sat, May 16, 2009 at 8:30 PM, Michael Ludwig wrote

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
uot; Does it ring any bells to any one?? Is it possible to set fork=yes programmatically? -- David Nemer Sent from Kaiserslautern, RP, Germany On Sat, May 16, 2009 at 6:52 PM, David Nemer wrote: > Hello Everyone, > > So here's what I did... I modified the source file Jav

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
ot;/opt/jdk1.6.0_06" Now, ANT goes to my JDK folder, it gets the right JAVA_HOME path, with no JRE, but it still says that it is not a JDK java!! I'm about to give up... I dunno what else to do... HELP please!!! Ant is driving me crazy!!! -- David Nemer Sent from Kaiserslautern, RP,

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
assLoader(antproject, path, true);" what else am I supposed to do?? Just set the AntClassLoader to the ant project, path = null, and true? Am I supposed to use ACL for anything else? Cheers, -- David Nemer Sent from Kaiserslautern, RP, Germany On Sat, May 16, 2009 at 5:25 PM, Ashley Williams wrote

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
e path to the JVM, not to the JDK. I think it is clear that the Ant error message is completely misleading. I have added a bug report in the Ant Bugzilla (43794). I think we have to find out what Ant does internally to allow the javac task to run, so that we know how Ant gets round this problem.&q

Re: Java in JDK but ANT can't find it!

2009-05-16 Thread David Nemer
Hello Supareno, I running it using the command line (running in a linux-server ). And ant is also running properly. Cheers, -- David Nemer On Sat, May 16, 2009 at 12:51 PM, supareno wrote: > David , > > are you using an IDE to run this simple code or are you using the command >

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
come this problem?? How to make Java look into the JAVA_HOME instead of JAVA_HOME/jre??? -- David Nemer Sent from Kaiserslautern, RP, Germany On Fri, May 15, 2009 at 11:58 PM, David Nemer wrote: > It wouldn't work since ANT looks for JAVA_HOME. > -- > David Nemer > Sent from Kai

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
It wouldn't work since ANT looks for JAVA_HOME. -- David Nemer Sent from Kaiserslautern, RP, Germany On Fri, May 15, 2009 at 11:55 PM, Francis Galiegue wrote: > Le Friday 15 May 2009 23:50:50 David Nemer, vous avez écrit : > > Hey all, > > > > Well, I did some testin

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread David Nemer
here the method System.getProperty goes to get the java.home? Like a file or something like that?? Cheers PS: I also used that code to call and in my java code. -- David Nemer Sent from Kaiserslautern, RP, Germany On Thu, May 14, 2009 at 5:36 PM, Ashley Williams wrote: > I did a lot of copying and

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
uggestions? Cheers -- David Nemer Sent from Kaiserslautern, RP, Germany On Thu, May 14, 2009 at 4:54 PM, Ashley Williams wrote: > Check your PATH to make sure you are launching your application from the > jdk and not the jre. > > I launch programatically and I don't get these errors

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
This is what I'm trying to tell you! My JAVA_HOME it is set as /opt/jdk1.6.0_06 I've triple checked it on my bash file! I also check with echo $JAVA_HOME and which java, they all tell the right path, but not ANT! This is why I don't understand where does ant get this /jre !! -- D

Re: Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
re in any PATH or JAVA_HOME Cheers -- David Nemer Sent from Kaiserslautern, RP, Germany On Thu, May 14, 2009 at 4:28 PM, Cole, Derek E wrote: > When I had this problem, I KNOW that JAVA_HOME was set correctly. I > still ran into the problem. The OP here also said JAVA_HOME was set > corre

Java in JDK but ANT can't find it!

2009-05-14 Thread David Nemer
guration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1. Cheers, -- David Nemer Sent from Saarbrucken, SL, Germany

Re: Problems with ANTLR

2009-04-29 Thread David Nemer
Anyone??? -- David Nemer Sent from Kaiserslautern, RP, Germany On Wed, Apr 29, 2009 at 12:18 AM, David Nemer wrote: > Hey Everyone, > > I'm trying to build my project with ANT, and I'm getting the following > error: > > Reason: /scratch2/nemer/test/build.xml:47: Pr

Problems with ANTLR

2009-04-28 Thread David Nemer
ownload the ant-nodeps-1.7.1.jar to the ANT_HOME/lib, but still doesn't work! Can anyone help me here!! I'm stuck and can't seem to find the solution! Cheers, -- David Nemer Sent from Kaiserslautern, RP, Germany

Re: is there exitCode in Ant?

2009-03-31 Thread David Nemer
I'm importing: import org.apache.tools.ant.Task; import org.apache.tools.ant.taskdefs.*; And they don't seem to recognize the failonerror -- David Nemer Sent from Kaiserslautern, RP, Germany On Wed, Apr 1, 2009 at 12:05 AM, Jeremy Kie wrote: > Take a look at the java Ant

Re: is there exitCode in Ant?

2009-03-31 Thread David Nemer
Hello Martin, Thank you. I'm using coding the Ant execution in Java code... so how do I call the failonerror of a build process?? Cheers, -- David Nemer Sent from Kaiserslautern, RP, Germany On Tue, Mar 31, 2009 at 11:01 PM, Martin Gainty wrote: > > David > > http://ant.

Re: is there exitCode in Ant?

2009-03-31 Thread David Nemer
command from ant returns: 'BUILD FAILED' or 'BUILD SUCCESSFUL' Cheers -- David Nemer Sent from Kaiserslautern, RP, Germany On Tue, Mar 31, 2009 at 10:33 PM, David Nemer wrote: > Hey guys, > > I got the integration with Ant and Java working fine. > > I was wonde

is there exitCode in Ant?

2009-03-31 Thread David Nemer
per.getProjectHelper(); p.addReference("ant.projectHelper", helper); helper.parse(p, buildFile); p.executeTarget(p.getDefaultTarget()); p.fireBuildFinished(null); } catch (BuildException e) { p.fireBuildFinished(e); } } Thank you

Re: Developing in Java with ANT

2009-03-27 Thread David Nemer
once again, Cheers, -- David Nemer Sent from: Kaiserslautern RP Germany. On Wed, Mar 18, 2009 at 8:54 PM, Matt Benson wrote: > > Here's one: http://tinyurl.com/jz76f > > -Matt > > --- On Wed, 3/18/09, David Nemer wrote: > > > From: David Nemer > > Subject

Re: Developing in Java with ANT

2009-03-18 Thread David Nemer
Do you guys by any chance know any open source project that runs its test scripts with Ant?? Thanks -- David Nemer Sent from: Kaiserslautern RP Germany. On Wed, Mar 18, 2009 at 6:57 PM, David Nemer wrote: > Thanks Matt!! Now it works ;) > -- > David Nemer > Sent from: Kaiserslauter

Re: Developing in Java with ANT

2009-03-18 Thread David Nemer
Thanks Matt!! Now it works ;) -- David Nemer Sent from: Kaiserslautern RP Germany. On Wed, Mar 18, 2009 at 6:51 PM, Matt Benson wrote: > > You need to include ant-launcher.jar to get the AntMain interface. This > probably should be in the core Ant jar but would take a little re

Re: Developing in Java with ANT

2009-03-18 Thread David Nemer
java:308) at org.apache.tools.ant.Project.init(Project.java:295) at testAnt.main(testAnt.java:14) THis line 14 refers to p.init(); Do you guys have any clues what it might be?? -- David Nemer Sent from: Kaiserslautern RP Germany. On Tue, Mar 17, 2009 at 9:42 AM, Felix Dorner wrote: >

Re: Developing in Java with ANT

2009-03-16 Thread David Nemer
ere a way to call the command ANT in Java coding? -- David Nemer On Mon, Mar 16, 2009 at 10:14 PM, Martin Gainty wrote: > David > > make sure your class gets on the classpath before you use it with ant e.g. > > assume the java file is located in .\packageName\david.java > javac .

Developing in Java with ANT

2009-03-16 Thread David Nemer
w can I code a way to run Ant to build this project? ( I need to code that in Java... I can't just go to my command line and run Ant.) Thank you so much in advance -- David Nemer