RE: ant regex

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: snenkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 12:01 AM To: user@ant.apache.org Subject: ant regex /* I want to get back "C:\temp\dp\util\;C:\temp\dp\util\stack" */ your regexp works for me with antcontrib , using the default regexp eng

AW: cvs behaviour

2007-06-12 Thread Knuplesch , Jürgen
Hello Do you use argument line or argument value? I always have troubles with argument line, because you dont know what cvs command you do. Use argument value for each command line argument as in the example I used: Greetings Jürgen -- Jü

Re: flextasks anomalies

2007-06-12 Thread Varun Bhambri
Hello Martin, Is there anything that you've changed in the flexconfig.xml? I am also using the same Flex ANT Tasks and the latest Flex ANT Libraries. I haven't changed anything in the flexconfig file. I just copied the flexTasks.jar in my ANT_HOME/lib. So, I dont need to use a classpath to find t

flextasks anomalies

2007-06-12 Thread Martin Gainty
Good Evening All Just started to use this package and cant get FLEX_HOME to set or mxlmc to execute properly /attached mySimpleBuild.xml/ /**end mySimpleBuild.xml***/

Re: cvs behaviour

2007-06-12 Thread Chris Velevitch
On 6/13/07, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: Please post the relavant portion of your build.xml file. The output from ant might be helpful also. Buildfile: /home/chris/projects/i07/system/build.xml test.properties: default: [cvs] Using cvs passfile: /home/chris/.cv

ant regex

2007-06-12 Thread snenkov
I am using where from.classpath is "C:\temp\dp\util\bin;C:\temp\dp\util\stack" \1 returns C:\temp\dp\util\ but \2 does not return anything. I want to get back "C:\temp\dp\util\;C:\temp\dp\util\stack" Thanks Stefan -- View this message in context: http://www.nabble.com/ant-reg

RE: Using Ant to build a war file

2007-06-12 Thread Anderson, Rob (Global Trade)
Yes. Let's say the is foo... -Original Message- > From: Meryl Silverburgh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 12, 2007 1:53 PM > To: user@ant.apache.org > Subject: Using Ant to build a war file > > Hi, > > I am using the following task to build a war file: > > > >

Using Ant to build a war file

2007-06-12 Thread Meryl Silverburgh
Hi, I am using the following task to build a war file: But the problem I have is the '' in the web.xml file does not match the war file that I generated "${warfile}" Is there a way to configure the 'war' task?

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Gilbert Rebhan wrote: > > > Blank directorie are not copied, how to achieve > that if wanted ? > > (manual says task is set to > ncludeEmptyDirs="true" ? > > it's simply a question of the fileset include > pattern > if used > > includes="**/*"

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Gilbert Rebhan
Gilbert Rebhan wrote: Blank directorie are not copied, how to achieve that if wanted ? (manual says task is set to ncludeEmptyDirs="true" ? it's simply a question of the fileset include pattern if used includes="**/*" = main: [echo] Files to copy = [copy] Copied 1 empty directory

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Matt Benson
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote: > Hi, > > Matt Benson wrote: > > Hi Chris: > > Try using a > > selector with your source . > > > > HTH, > > Matt > > Nice :-) > > > before = > > J:\copyfrom\subdir1\ > J:\copyfrom\subdir1\build.xml > J:\copyfrom\subdir2\ > J:\copyfrom\subdir2

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Gilbert Rebhan
Hi, Matt Benson wrote: Hi Chris: Try using a selector with your source . HTH, Matt Nice :-) before = J:\copyfrom\subdir1\ J:\copyfrom\subdir1\build.xml J:\copyfrom\subdir2\ J:\copyfrom\subdir2\subsub2\build.xml J:\copyfrom\build.xml and J:\copyto is a blank directory with =

Classpaths in build file not working properly

2007-06-12 Thread Daniel Gresh
Hi, I have a build file, and in that build file I'm setting up my classpath and assigning it. However, when I try to run my compiled code, I get a NoClassDefFoundError: service/ImageProcessor. When I run my code and set the classpath manually using the -cp argument to the java command, the p

[solved] Re: Running .app on Mac OSX

2007-06-12 Thread Paul Barnes-Hoggett
Hi there, your solution worked great, thanks! I actually needed to add a little extra into it so that I waited until the right content had been written into the file:

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Matt Benson
Hi Chris: Try using a selector with your source . HTH, Matt --- Chris Velevitch <[EMAIL PROTECTED]> wrote: > On 6/12/07, Rebhan, Gilbert > <[EMAIL PROTECTED]> wrote: > > combine it with a condition, example = > > > > > > > > > > file="${ant.working.dir}/${mname}_script.params" />

RE: cvs behaviour

2007-06-12 Thread Anderson, Rob (Global Trade)
Please post the relavant portion of your build.xml file. The output from ant might be helpful also. -Rob Anderson > -Original Message- > From: Chris Velevitch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 12, 2007 2:15 AM > To: user@ant.apache.org > Subject: cvs behaviour > > The cvs

Re: Running .app on Mac OSX (a bit O/T)

2007-06-12 Thread Martin Gainty
Good Afternoon Paul Trying to get this same scenario working in Flex ActionScript but can't get any information from Adobe on how to configure ActionScript in Apache httpd.conf M-- This email message and any files transmitted with it contain confidential information intended only for the perso

RE: Token based loading of property files

2007-06-12 Thread Anderson, Rob (Global Trade)
This is possible. Perhaps it would be best to run through an example that I see on a regular basis. Here is the scenario: We have a web application that we need to deploy to several different environments; localhost, dev, qa, staging and production. Solution: We use a properties file for each env

Re: Running .app on Mac OSX

2007-06-12 Thread David Weintraub
This may or may not work: The *.app file is really a directory and not a single file. Sometimes, I find the actual application that I can execute from the command line inside the *.app directory. This even includes a few GUI applications -- especially those that are Unix based. Use the Terminal

RE: Running .app on Mac OSX

2007-06-12 Thread Anderson, Rob (Global Trade)
The open command may background the app. I would look at the command line options for "open" to see if you can run the app in the foreground. You could also look inside the application directory for the executable and run that instead of open. -Rob Anderson > -Original Message- > From: Pa

RE: Running .app on Mac OSX

2007-06-12 Thread RADEMAKERS Tanguy
Hello Paul, You should be able to get around this by using the "waitfor" task with a nested "available" check on the output file. Regs, /t >-Original Message- >From: Paul Barnes-Hoggett [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 12, 2007 6:16 PM >To: user@ant.apache.org >Subject:

Running .app on Mac OSX

2007-06-12 Thread Paul Barnes-Hoggett
Hi all, I have an ant script that's been working on Win XP, and I'm trying to get it working on a Mac. Basically, I want to run an app (its a swf player) that writes contents out to a file, then closes. Ant waits till the process has finished, then reads the file. So, on Win XP, this works:

Re: Mail failing in build.xml file

2007-06-12 Thread Peter Reilly
On 6/11/07, David Weintraub <[EMAIL PROTECTED]> wrote: I have a very straight forward build.xml file: When I attempt to execute it, I get the following error message: test: [mail] Failed to initialise MIME mail: javax/mail/MessagingException BUI

Re: replacing sections of build file

2007-06-12 Thread David Weintraub
You can set default values in your build.xml like this: Which I recommend. These in turn can be overwritten by reading in a properties file. For example, if you have a file build.properties that looks like this: # Overrides "foo" in the build.xml file foo=munged-foo-value And your build

Re: Problem with task

2007-06-12 Thread Wayne Cannon
David, I duplicated your trial and got exactly the same error. Then I dropped mail.jar and activation.jar into my ANT_HOME/lib directory and everything worked perfectly. I hope that is helpful. --Wayne David Weintraub wrote: I have a very straight forward build.xml file:

Re: Mail failing in build.xml file

2007-06-12 Thread David Weintraub
It actually makes no difference what the JAR is called because Ant probably puts all the JARs in the classpath, so it's the path structure of each JAR that's important. As long as their is a javax.activation.DataSource class, it should be found. I'm going to dig in to see the actual class impleme

xmltask, xpath related question

2007-06-12 Thread Rebhan, Gilbert
Hi, with a given xmlfile as input for my buildscript = i need to call a cvscheckout macrodef for every modul found in the xml; the cvsroot varies in the projekt name attribute. I have a working script =

Re: replacing sections of build file

2007-06-12 Thread arijit
yes, I want to use the property file.. can you please refer to my other thread ("Token based loading of property files") and share your view on that.. Scot P. Floess wrote: > > So you want to replace while processing? Hmmmaybe that isn't the > best approach? Maybe use property files? >

Re: replacing sections of build file

2007-06-12 Thread Scot P. Floess
So you want to replace while processing? Hmmmaybe that isn't the best approach? Maybe use property files? arijit wrote: Problem is that replace is for replacing the tokens in another file.. what happens if I want to change something in the same build file that I am executing.. Scot P.

Re: replacing sections of build file

2007-06-12 Thread arijit
Problem is that replace is for replacing the tokens in another file.. what happens if I want to change something in the same build file that I am executing.. Scot P. Floess wrote: > > If you denote the values you want changed in some "special" way (meaning > tokens), you can you the task. L

Re: Mail failing in build.xml file

2007-06-12 Thread Scot P. Floess
David: I don't exactly remember but I don't think a symlink will work to the jar file... You may need to refer to the actual jar... I seem to remember having some issue on Linux back in the day with regards to symlinks and jar files... Just for grins, try copying mail-1.4.jar to mail.jar a

Re: Problem with task

2007-06-12 Thread David Weintraub
No. I mean CruiseControl works when it sends out its mail. Not it works when it is running ant. Both Ant and CruiseControl are Java apps, so I assume that if CruiseControl can send mail, I should via Ant. I downloaded mail.jar and put it in ~ant/lib, but still have the same problem. See the other

Re: Mail failing in build.xml file

2007-06-12 Thread David Weintraub
I just tried that. I downloaded mail-1.4.jar from Sun, put it in ~ant/lib, created a symbolic link from mail.jar -> mail-1.4.jar, and still get the same message. Here's the message with "debug". I do get something else with "debug" -- a missing antlib.xml: $ ~ant/bin/ant -debug -f mail.xml Apache

Re: replacing sections of build file

2007-06-12 Thread Scot P. Floess
If you denote the values you want changed in some "special" way (meaning tokens), you can you the task. Look at the Ant manual for this - it gives a pretty good example... arijit wrote: I have a build file test.xml which has lines in it which need to be replaced by actual values. These actua

replacing sections of build file

2007-06-12 Thread arijit
I have a build file test.xml which has lines in it which need to be replaced by actual values. These actual values are read from a property file, which is loaded by this build file. This problem is similar to the thread "Token based loading of property files" posted earlier in this forum. Have no

Re: Classpath issue with task

2007-06-12 Thread Peter Reilly
On 12 Jun 2007 12:55:13 -, query <[EMAIL PROTECTED]> wrote: Hi, I have been using ANT tool to compile java source files. In the log file, it is displaying the destination folder also in the classpath though I have not defined it in classpath. The destination folder has always been

Re: Token based loading of property files

2007-06-12 Thread arijit
in simple words I want to load "abc.properties" file and use the values stored in this property file to do the following -- 1. Set some property values for example after reading the value from abc.properties 2. Load few more property files after reading the name of the files to be loaded f

Re: Classpath issue with task

2007-06-12 Thread Scot P. Floess
First off what is the value of dst? Second, what is the definition of app.path? query wrote: Hi, I have been using ANT tool to compile java source files. In the log file, it is displaying the destination folder also in the classpath though I have not defined it in classpath. Is it

Classpath issue with task

2007-06-12 Thread query
  Hi, I have been using ANT tool to compile java source files. In the log file, it is displaying the destination folder also in the classpath though I have not defined it in classpath. Is it task bug? Log file: [javac] Using modern compiler [javac] Compilation arguments: [java

Re: javac task with classpath issue

2007-06-12 Thread Scot P. Floess
Can you reformat and show some samples? query wrote: Sorry for the mail format. The issue with recompilation is not with jar file, but with class files. When I have already mentioned eg1.jar in classpath, hence compiler shouldn't recompile the common java files while compiling eg2 source files.

Re: Re: javac task with classpath issue

2007-06-12 Thread query
Sorry for the mail format. The issue with recompilation is not with jar file, but with class files. When I have already mentioned eg1.jar in classpath, hence compiler shouldn't recompile the common java files while compiling eg2 source files. This issue is arising only with ANT tool. What can

Re: Token based loading of property files

2007-06-12 Thread arijit
Additionally, since I cannot use name attribute along with file attribute for property, so although I am loading the property file, by usingbut I cannot refer to that loaded file. arijit wrote: > > > > > > Now abc.properties have some key-value pair for example location="C:/test" >

RE: Mail failing in build.xml file

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: Priest, James (NIH/NIEHS) [C] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 1:57 PM To: Ant Users List Subject: RE: Mail failing in build.xml file /* I get this error as well but the email still gets sent. Using Ant 1.6.5 (within Eclipse) on WinXP.

RE: Mail failing in build.xml file

2007-06-12 Thread Saurabh Dave
Have you copied the mail.jar and activation.jar in Ant Lib directory.if not then do it and Try... -Original Message- From: Priest, James (NIH/NIEHS) [C] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 5:27 PM To: Ant Users List Subject: RE: Mail failing in build.xml file > ---

RE: creating files

2007-06-12 Thread arijit
i can now dynamically perform the creation from the template files.. Jukka Uusisalo-2 wrote: > > > > > >value="${foo}"/> > > > In test.properties file i have > foo=bar > > template.txt contains > Hello World by _Replace_This_ > > After exe

Token based loading of property files

2007-06-12 Thread arijit
Now abc.properties have some key-value pair for example location="C:/test" Now I want to fill in the value (marked with ?) with C:/test by reading from the abc.properties file. Is it possible ? -- View this message in context: http://www.nabble.com/Toke

RE: Mail failing in build.xml file

2007-06-12 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: David Weintraub [mailto:[EMAIL PROTECTED] > > When I attempt to execute it, I get the following error message: > > test: > [mail] Failed to initialise MIME mail: > javax/mail/MessagingException > > BUILD SUCCESSFUL I get this error as well but the em

cvs behaviour

2007-06-12 Thread Chris Velevitch
The cvs task behaves unexpectantly. At the commandline 'cvs export -d dest -r tag module' exports the content of the module the 'dest'. The ant task cvs creates a directory called 'module' in 'dest' and copies the contents of the module 'module' to the directory 'dest/module'. Is this a known prob

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Chris Velevitch
On 6/12/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: combine it with a condition, example = and make your copy target depend on the target with condtion and unless ... That's fine for one file, but cp -r tranverses a directory tree of 1000's of files. What's the ant eq

RE: task to 'cp -r --reply=no'

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: Chris Velevitch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 10:12 AM To: Ant Users List Subject: Re: task to 'cp -r --reply=no' /* The copy task states "By default, files are only copied if the source file is newer than the destination file, or wh

Re: task to 'cp -r --reply=no'

2007-06-12 Thread Chris Velevitch
On 6/12/07, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: "if the file exists ..." the copy task's default is overwrite false The copy task states "By default, files are only copied if the source file is newer than the destination file, or when the destination file does not exist", but in my case

RE: task to 'cp -r --reply=no'

2007-06-12 Thread Rebhan, Gilbert
Hi, -Original Message- From: Chris Velevitch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 9:46 AM To: user@ant.apache.org Subject: task to 'cp -r --reply=no' /* What task is the equivalent of 'cp -r --reply=no'. This command recursively copies files and if the file exists in

task to 'cp -r --reply=no'

2007-06-12 Thread Chris Velevitch
What task is the equivalent of 'cp -r --reply=no'. This command recursively copies files and if the file exists in the destination, skip copying that file and continue. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 www.flashdev.org.au

RE: Mail failing in build.xml file

2007-06-12 Thread Saurabh Dave
Download the Activation.jar and mail.jar and copy in ant Lib folder... -Original Message- From: David Weintraub [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 3:26 AM To: Ant Users List Subject: Mail failing in build.xml file I have a very straight forward build.xml file: