Re: help with exec task

2005-03-11 Thread Matt Benson
--- Radha Sangal <[EMAIL PROTECTED]> wrote: > Please help me figure this out, its quite simple. I > am executing > cabarc.exe to extract cab files in a dir. No error > is displayed but I > don't get my files > > Ant script : > > > > > > > >

help with exec task

2005-03-11 Thread Radha Sangal
Please help me figure this out, its quite simple. I am executing cabarc.exe to extract cab files in a dir. No error is displayed but I don't get my files Ant script : Ou

RE: IllegalAccessException

2005-03-11 Thread Payette, Don J
It's sorta case sensitive. By that I mean that all files are generally in upper case, and when you type file names in, they get upcased, unless you explicitly quote, then upcasing doesn't happen.For example, I had also tried copying /-/JAVA142/OBJECT/JAVA as /-/JAVA142/DIR/JRE/BIN/"java" to se

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
That will produce the same unexpected result (the perl script's ?$ will be zero). exit /b simply sets the errorlevel, which is already non-zero. The problem is that the command shell process won't return errorlevel as a return code; the exit line itself is masking it out just as a REM statement

Survey on Understanding Code

2005-03-11 Thread Vineet Sinha
Hi, We are running a set of small surveys, in an attempt to understand developers problems when attempting to understand code. Results from this survey will be used in refining (open-source) tools that we are building. If you have looked at the code of any of the (Java) projects below, we woul

Re: depends executed before if/unless

2005-03-11 Thread Ninju Bohra
I think the problem lies in the fact the you are too deep before you decide to check whether you should be here or not. In you example: if="user.hungry"> I would expect that the "bake" target would have been called from a higher task which would make the check...i.e. And that the lower

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
[test.bat] dir test.bat if not %errorlevel%==0 goto error_exit :success_exit exit /b 0 :error_exit exit /b 1 -Original Message- From: John Cortell [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 11:20 AM To: Ant Users List Subject

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
Sten, thanks for the added info. It seems putting an 'exit /b' at the end of ant.bat has the same effect as putting a 'goto: eof' which has the same effect as leaving ant.bat unmodified (sort of like putting a return statement at the end of a C/C++ function that returns void). Again, no surpris

Re: launching Ant from a perl script

2005-03-11 Thread Peter Reilly
According to http://www.ss64.com/nt/exit.html This is only available for windows xp or newer. Peter Dick, Brian E. wrote: You learn something new everyday. I always cringe when I type "goto". Now, maybe that twitch will go away. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
You learn something new everyday. I always cringe when I type "goto". Now, maybe that twitch will go away. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:56 AM To: user@ant.apache.org Subject: RE: launching Ant from a perl script

Re: depends executed before if/unless

2005-03-11 Thread Stefan Bodewig
On Fri, 11 Mar 2005, Andrew Ferguson <[EMAIL PROTECTED]> wrote: > Is this a misunderstanding of the intended use of the if/unless > attributes? Maybe, at least what you see is correct - both your description and from Ant's intentions. It is a very common design pattern in build files to set the

depends executed before if/unless

2005-03-11 Thread Andrew Ferguson
hi, I've come across what seems to be quite a deep problem with my understanding of ANT. When you declare a target is both conditional, and that it has dependencies, the dependencies are executed first, and then the condition is evaluated. So will go to all of the trouble of setting up

RE: launching Ant from a perl script

2005-03-11 Thread sten.rosendahl
>From the Windows XP on-line help: EXIT [/B] [exitCode] /B specifies to exit the current batch script instead of CMD.EXE. If executed from outside a batch script, it will quit CMD.EXE exitCodespecifies a numeric number. if /B is specified, sets

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
Indeed. The 'exit' fixes the return-code problem when launching the bat file from a perl script, but clearly, the 'exit' introduces a much bigger problem if you're just executing bat files sans perl. Definitely not something that should be added to run.bat in production! Thanks for the correcti

Re: How to use the flatten copier

2005-03-11 Thread Ninju Bohra
OOh.. maybe I can just use the flatten attribute of the task... Ninju Bohra <[EMAIL PROTECTED]> wrote:Hey Guys, How do I use the task to accomplish the follow batch stuff: xcopy /y /r %ProjectRoot%\ThirdParty\lib\JDK1.2\Javax_Activation\activation.jar %WebRoot%\WEB-INF\lib xcopy /y /r %Projec

How to use the flatten copier

2005-03-11 Thread Ninju Bohra
Hey Guys, How do I use the task to accomplish the follow batch stuff: xcopy /y /r %ProjectRoot%\ThirdParty\lib\JDK1.2\Javax_Activation\activation.jar %WebRoot%\WEB-INF\lib xcopy /y /r %ProjectRoot%\ThirdParty\lib\JDK1.2\Javax_EJB\javax_ejb.jar %WebRoot%\WEB-INF\lib xcopy /y /r %Proj

RE: launching Ant from a perl script

2005-03-11 Thread Dick, Brian E.
The "exit" command terminates the command shell and not the bat file. You exit a bat file by "goto :eof". -Original Message- From: John Cortell [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 9:34 AM To: Ant Users List Subject: RE: launching Ant from a perl script I had tried tha

Re: IllegalAccessException

2005-03-11 Thread Stefan Bodewig
On Fri, 11 Mar 2005, Don J. Payette <[EMAIL PROTECTED]> wrote: > This > > > works. Correct about /bin/java not working. > > I added > "java.home '${java.home}'" > "os.name '${os.name}'" > and got > [echo] "java.home '/-/JAVA142/DIR/JRE'" > [echo] "os.name 'MCP/A

RE: IllegalAccessException

2005-03-11 Thread Payette, Don J
This works. Correct about /bin/java not working. I added "java.home '${java.home}'" "os.name '${os.name}'" and got [echo] "java.home '/-/JAVA142/DIR/JRE'" [echo] "os.name 'MCP/AS'" This gave me the idea to copy OBJECT/JAVA as /-/JAVA142/DIR/

RE: launching Ant from a perl script

2005-03-11 Thread John Cortell
I had tried that, too, but that opens up a different can of worms. The perl script I'm writing can't assume that .pl is registered as an executable extension (such that one can simply type, for example, runant.pl, at a command line and the file will automatically by fed to perl.exe). So I can't

AW: Ant in eclipse

2005-03-11 Thread Pfau Oliver FRD II
The ant tasks are not displayed in eclipse... and I have not changed the preferences...so it is maybe a version problem... but, thanks -Ursprüngliche Nachricht- Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. März 2005 14:09 An: Ant Users List Betreff: RE: Ant in ec

RE: Ant in eclipse

2005-03-11 Thread Rebhan, Gilbert
Hi, Eclipse 2.1 ships with Ant 1.4 or Ant 1.5 as far as i know. So either you have changed the Ant Runtime Preferences or the tasks you want to use, rely on jdk 1.4 See also = http://marc.theaimsgroup.com/?l=ant-user&m=110536321732402&w=2 Gilbert -Original Message- From: Pfau Oliver

RE: launching Ant from a perl script

2005-03-11 Thread Keith Hatton
Isn't there a runant.pl in your ANT_HOME/bin? -Original Message- From: John Cortell [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 00:53 To: user@ant.apache.org Subject: launching Ant from a perl script Hi, I'm having a tough time figuring out how to get the return code from an Ant in

AW: Ant in eclipse

2005-03-11 Thread Pfau Oliver FRD II
Hi, the ant is shipped with eclipse... eclipse 2.1 jdk 1.3.1 ant 1.6.2 the ant plugin can not recognize the ant targets.. -Ursprüngliche Nachricht- Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. März 2005 13:45 An: Ant Users List Betreff: RE: Ant in eclipse Hi,

RE: Ant in eclipse

2005-03-11 Thread Rebhan, Gilbert
Hi, what version of = eclipse / jdk / ant you're using ? Do you use the ant version that is shipped with eclipse or did you modify the ant runtime preferences ? Gilbert -Original Message- From: Pfau Oliver FRD II [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 1:35 PM To: '

Ant in eclipse

2005-03-11 Thread Pfau Oliver FRD II
Hi, I want to start my ant build file from eclipse...when I choose "Run Ant..." from the context menu I got an error message in the following dialog. In the upper left corner is a text "fRecognizedFeatures"...what is wrong here ? Thanks, Oliver --

Re: parse XML file problem

2005-03-11 Thread Brian Agnew
If you use xmltask then you can call an Ant target for each file location, using something like: to call an Ant target 'antTarget' for each location, with the properties "filename" and "type" set appropriately. Note that I haven't tested the above, so it may require some tweaking. You

Re: Classpath in javac

2005-03-11 Thread Kristian Perkins
have a look at http://ant.apache.org/manual/using.html#path Pfau Oliver FRD II wrote: Hi, I have a directory which contains many jar-files. I want to add all this jars in my class path for javac...how can I do this recursive without naming each jar ? Thanks, Oliver -

Classpath in javac

2005-03-11 Thread Pfau Oliver FRD II
Hi, I have a directory which contains many jar-files. I want to add all this jars in my class path for javac...how can I do this recursive without naming each jar ? Thanks, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For