Re: behavior on properties... is it a bug? or by design?

2009-09-25 Thread Melih Önvural
Thanks a bunch for that! -- Melih On Sep 25, 2009, at 8:44 PM, Dominique Devienne wrote: On Fri, Sep 25, 2009 at 9:24 PM, Melih Onvural > wrote: I noticed that when I run targets in a loop, that they don't know of properties that were set in previous targets or in targets which are dependen

Re: Need Help urgent

2009-09-25 Thread shwitzu
Hello, I tried to see the log file but there is no hint in that. Still not able to figure out what the issue is.. The log file is as follows init: build: [javac] Compiling 63 source files to C:\Documents and Settings\sag\Sagarika\A\classes [javac] Note: Some input files use unchecked

Re: behavior on properties... is it a bug? or by design?

2009-09-25 Thread Dominique Devienne
On Fri, Sep 25, 2009 at 9:24 PM, Melih Onvural wrote: > I noticed that when I run targets in a loop, that they don't > know of properties that were set in previous targets or in targets > which are dependencies of the given target. As an example: Yep, by design. uses a different Project for eac

behavior on properties... is it a bug? or by design?

2009-09-25 Thread Melih Onvural
I noticed that when I run targets in a loop, that they don't know of properties that were set in previous targets or in targets which are dependencies of the given target. As an example: in target with name of getcssfiles, I don't know what my build number is. However, i

Re: Need Help urgent

2009-09-25 Thread glenn opdycke-hansen
Perhaps you can find the answer by running ant in verbose mode (-v) and write the messages to a file with --glenn On Fri, Sep 25, 2009 at 16:47, shwitzu wrote: > > Hi I am having trouble with the Ant build file which I am using in my > program. I am not able to copy the JAR files which are be

Re: Need Help urgent

2009-09-25 Thread Francis GALIEGUE
On Sat, Sep 26, 2009 at 00:45, shwitzu wrote: > > @ Frank > Thanks for responding > > Even though i remove the properties from the target I am still getting the > same error. > > My problem is with the following part of the code > > >                 toDir="${jboss.deploy}" /> >         > > > fro

Re: Need Help urgent

2009-09-25 Thread shwitzu
@ Frank Thanks for responding Even though i remove the properties from the target I am still getting the same error. My problem is with the following part of the code from the out.dir - i.e. the work place I am asking the ant to copy the sensorDemo.jar to JBoss depl

Re: Need Help urgent

2009-09-25 Thread Francis GALIEGUE
On Fri, Sep 25, 2009 at 23:47, shwitzu wrote: > > Hi I am having trouble with the Ant build file which I am using in my > program. I am not able to copy the JAR files which are being generated in > the workspace to the deploy folder of jboss. Please let me know what changes > should I do. Here is

Need Help urgent

2009-09-25 Thread shwitzu
Hi I am having trouble with the Ant build file which I am using in my program. I am not able to copy the JAR files which are being generated in the workspace to the deploy folder of jboss. Please let me know what changes should I do. Here is the build file.

Re: How to throw error if two files not equal?

2009-09-25 Thread Dominique Devienne
On Fri, Sep 25, 2009 at 4:04 PM, Chris wrote: > [...] and throw an error See the task. --DD - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

How to throw error if two files not equal?

2009-09-25 Thread Chris
I need to check to see if two files are the same, and throw an error and stop the build if they're not. Two problems: How to throw an error? How to compare two files? This is as far as I've gotten: ${isgood} This works, sort of, but it doesn't throw an error. Bizarrely, if neither file

Re: Launch Ant build from Java

2009-09-25 Thread Jean-Baptiste BRIAUD -- Novlog
OK, so it look like possible in one way or another to run it using Ant java classes but what about classloader ? If the launch build contain a javac task, will all the parsed/compiled classes be loaded in the main JVM ? If yes, the memory will grow and grow, isn't it ? Does it change somethi

Re: Launch Ant build from Java

2009-09-25 Thread David Byrden
Here are the classes. The entry point is main() in com.byrden.ant.launch.DavesAntLauncher This is just a launcher, like the existing ANT launcher, and you must specify the "main" class you want it to use, via a command line option: -maincom.byrden.ant.launch.DavesMain Also feed it

Re: Launch Ant build from Java

2009-09-25 Thread Jean-Baptiste BRIAUD -- Novlog
Hi Robert, Thanks, I'll have a look right now :-) On Sep 25, 2009, at 19:18 , robert lazarski wrote: On Fri, Sep 25, 2009 at 1:17 PM, Jean-Baptiste BRIAUD -- Novlog wrote: Hi, I'd like to launch an Ant build from Java (from a servlet in a Tomcat server). What would you advise me to do that

Re: Launch Ant build from Java

2009-09-25 Thread Jean-Baptiste BRIAUD -- Novlog
Hi David, Thanks for your answer, sure I'm interested ! On Sep 25, 2009, at 19:45 , David Byrden wrote: Jean-Baptiste: I raised this as bug 47854: https://issues.apache.org/bugzilla/show_bug.cgi?id=47854 I can now run Ant via its launcher, simulating the command line with a string paramete

RE: Launch Ant build from Java

2009-09-25 Thread Martin Gainty
i came upon that same issue when trying to load ant from maven unless there are objections i vote to roll your mods into base thanks/danke Martin Gainty __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der

Re: Launch Ant build from Java

2009-09-25 Thread David Byrden
Jean-Baptiste: I raised this as bug 47854: https://issues.apache.org/bugzilla/show_bug.cgi?id=47854 I can now run Ant via its launcher, simulating the command line with a string parameter, but I have to add 2 classes. Do you want them? David - BYRDEN.COM David

Re: Launch Ant build from Java

2009-09-25 Thread robert lazarski
On Fri, Sep 25, 2009 at 1:17 PM, Jean-Baptiste BRIAUD -- Novlog wrote: > Hi, > > I'd like to launch an Ant build from Java (from a servlet in a Tomcat > server). > > What would you advise me to do that ? > Should I launch it from OS using exec or should I try to use Ant classes > from my own class

Launch Ant build from Java

2009-09-25 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I'd like to launch an Ant build from Java (from a servlet in a Tomcat server). What would you advise me to do that ? Should I launch it from OS using exec or should I try to use Ant classes from my own classes ? At first sight, I see the main class has a private method run so it is no

pass parameters from one file to another

2009-09-25 Thread paul collins
I was supplied a script by Francis Galiegue see below which passes a parameter value from one property file to another one, which works for me see below, but I have comments in file B see below for example that I want to keep, but these are removed when I run this script. From reading the ANT manua

Re: Replace value of a parameter

2009-09-25 Thread paul collins
That wokred so ignore my question on defining the file outside the target. What I do notice is that the original file B had a number of lines in it which were comments for example see below, is ther any way of keeping these comments in the file? #

Re: Replace value of a parameter

2009-09-25 Thread paul collins
I have not tried this yet but how come property file A is defined out side the target something should not be inside it? On Fri, Sep 25, 2009 at 10:13 AM, Francis GALIEGUE wrote: > On Fri, Sep 25, 2009 at 10:51, paul collins > wrote: > > I want to pass a parameter value from one property fil

Re: Replace value of a parameter

2009-09-25 Thread Francis GALIEGUE
On Fri, Sep 25, 2009 at 10:51, paul collins wrote: > I want to pass a parameter value from one property file to another one, they > both have the same name so for example I have file A with the parameter > build=0999 > > and other file B with a number of paramters but the one I want to replace is

Replace value of a parameter

2009-09-25 Thread paul collins
I want to pass a parameter value from one property file to another one, they both have the same name so for example I have file A with the parameter build=0999 and other file B with a number of paramters but the one I want to replace is build build=0998 So how do do I take the value of build in f