Compiler problems

2005-02-03 Thread Lylesh V Menezes
Hi, I am very new to ANT now, Hi, I am getting the following errors when i compile Java using ANT illegal escape character, these files are using Japanese codepages, I also get some other errors like this unclosed string literal so can any one help me in this, i am pretty new to ant.

Shane Stene/NMD/CONT/USGS/DOI is out of the office.

2005-02-03 Thread Shane Stene
I will be out of the office starting 02/04/2005 and will not return until 02/22/2005. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: properties, path with leading \\

2005-02-03 Thread Gilbert Rebhan
Hi, please apologize my bad english :) Regards, Gilbert Maybe a FAQ entry about this? And please call it "leading \\" rather than trailing. -Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Jacob Kjome wrote: At 08:50 PM 2/3/2005 -0500, you wrote: >Hi; >On an imported file, I would like to run a target upon getting imported. >Although the imported's target can be run for the file importing it, I >would like to have a target in the imported file run automatically upon >being imported.

Re: Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Jacob Kjome wrote: At 08:50 PM 2/3/2005 -0500, you wrote: >Hi; >On an imported file, I would like to run a target upon getting imported. >Although the imported's target can be run for the file importing it, I >would like to have a target in the imported file run automatically upon >being imported.

Re: Import: auto run a target in the imported file.

2005-02-03 Thread Jacob Kjome
At 08:50 PM 2/3/2005 -0500, you wrote: >Hi; >On an imported file, I would like to run a target upon getting imported. >Although the imported's target can be run for the file importing it, I >would like to have a target in the imported file run automatically upon >being imported. Is this possible? I

Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Hi; On an imported file, I would like to run a target upon getting imported. Although the imported's target can be run for the file importing it, I would like to have a target in the imported file run automatically upon being imported. Is this possible? Thanks, -nat

Re: Skip building jar file

2005-02-03 Thread Douglas Kramer
Thank you! That works, and speeds things up a lot. -Doug Conor MacNeill wrote: Remove the line where you delete it. Ant should then not bother rebuilding it if none of the files has changed. Douglas Kramer wrote: Novice question. My ant script works great, skipping compile if source files have n

Re: Skip building jar file

2005-02-03 Thread Conor MacNeill
Remove the line where you delete it. Ant should then not bother rebuilding it if none of the files has changed. Douglas Kramer wrote: Novice question. My ant script works great, skipping compile if source files have not changes, and skipping copying of resources if they have not changed. How wo

Re: Skip building jar file

2005-02-03 Thread Ninju Bohra
I guess one way to do it is you could use along with the selector and scan over all the files that would go in the jar. Set the date in the selector to the creation of the existing jar. Now if any files are selected you can then execute the jar task. Of course, there is question of how to

Skip building jar file

2005-02-03 Thread Douglas Kramer
Novice question. My ant script works great, skipping compile if source files have not changes, and skipping copying of resources if they have not changed. How would I prevent building the jar file if nothing has changed? -Doug -

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Matt Benson wrote: [SNIP] /> $${pleaseHelp}=${pleaseHelp} -Matt Aye, thanks much. It works 99%. It returns the correct path but it also includes a dir separator at the end. How do I drop that? -nat

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: > Matt Benson wrote: [SNIP] > > > > > > /> > > > > > > > >$${pleaseHelp}=${pleaseHelp} > > > >-Matt > > > > > Aye, thanks much. It works 99%. It returns the > correct path but it also > includes a dir separator at the end. How do I drop > that?

Re: XML and copy directories

2005-02-03 Thread Ninju Bohra
Well, The safe answer is yes and no... Out of the box, the ANT distribution (along with the ant-contrib project) comes with a number of concepts (tasks and structures) that would be helpful (, , , etc...) to accomplish MOST of what you want. The one area that is not currently pre-built is t

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] This is what I want: -- If the from path = /a/b/c/d/e/f/e/ejb, ${pleaseHelp} should=/a/b/c/d/e If the from path = /a/ejb, ${pleaseHelp} should=/a Alas, in the aforementioned snippet, in my c

Re: filter loops in 1.6.2

2005-02-03 Thread Matt Benson
--- Chris Shabsin <[EMAIL PROTECTED]> wrote: > >It may be that what you are looking for is an > option > >to turn off recursive token expansion in > filtersets. > >Does this sound correct? > > > > > Yes, that's precisely what I need. > This will be in Ant 1.6.3 . -Matt > -Chris > > > -

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] > This is what I want: > -- > > from="(${projectPath}/src/**)/ejb" > to="\1" > /> > > > > If the from path = /a/b/c/d/e/f/e/ejb, > ${pleaseHelp} should=/a/b/c/d/e > If the from

Re: properties, path with trailing \\

2005-02-03 Thread Douglas Kramer
Dominique Devienne wrote: -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Well, IMO that's a real gotcha for WinUsers, as they are used to write '\' instead of '/' and normally (my\normal/path\foo/bar) it doesn't matter whether you write \ or / or mixed I've seen those be

RE: need help using to compile some C++ code along with the JAVA code

2005-02-03 Thread Conelly, Luis (GE Energy, Non GE, GENE)
why don?t use Ant-contrib [1] task? You can download Ant-contrib from [2] HTH Luis [1] http://ant-contrib.sourceforge.net/cc.html [2] http://sourceforge.net/project/showfiles.php?group_id=36177 -Original Message- From: Yerram, Madhusudhan R. [mailto:[EMAIL PROTECTED] Sent: Thursday, Feb

need help using to compile some C++ code along with the JAVA code

2005-02-03 Thread Yerram, Madhusudhan R.
Hello Anters; I need help using ANT to compile some C++ code along with the JAVA code. I have pretty much accomplished to manage the JAVA code but having some trouble to make it work for C++ code Using < exec> tag If anybody made this work for C++ I appreciate it if you can forward the sa

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] Can the location attribute take a wildcard for an unknown number of dir elements leading to one known last element? -nat Nat, it sounds like you wan

XML and copy directories

2005-02-03 Thread Henning Waack
Hello all. I am new to Ant, I have no experience with it. I need to evaluate if Ant can be used for a project I work on. Since I have some difficulties getting the information I need from the web, I would like to give you a rough overview of my demands and ask you to tell me, if this is possible. I

RE: error: ...class definition existed..can no longer be found ?

2005-02-03 Thread THUFIR HAWAT
Boy, that's a silly error on my part. Monsters is a whole diff package, I must've mixed them up. Thanks for spotting this. I've cc'ed the list, for the sake of the archives, yes? -Thufir - Original Message - From: "Saket Joshi" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE:

Re: debug ANT

2005-02-03 Thread Ninju Bohra
If you are planning write JUnit tests for ANT tasks that you wrote, you may want to look at the helper JUnit TestCase sub-class that comes with the ANT source distribution. The class is called org.apache.tools.ant.BuildFileTest and if your testcase classes extend from this class you have help

Re: debug ANT

2005-02-03 Thread Peter Reilly
Yep, that looks cool as well. Peter Darin Swanson wrote: Honking my own horn...Eclipse has it as well as of 3.1 M4 See the new and noteworthy (this is from one of the mirrors): http://eclipse-mirror.jab.fi/site/eclipse/downloads/drops/S-3.1M4-200412162000/eclipse-news-part1-M4.html The Ant debugger

Re: debug ANT

2005-02-03 Thread Darin Swanson
Honking my own horn...Eclipse has it as well as of 3.1 M4 See the new and noteworthy (this is from one of the mirrors): http://eclipse-mirror.jab.fi/site/eclipse/downloads/drops/S-3.1M4-200412162000/eclipse-news-part1-M4.html The Ant debugger we provide does not allow for the stepping into the ac

Re: debug ANT

2005-02-03 Thread Peter Reilly
Wow! That looks really powerfull. Peter Alexey N. Solofnenko wrote: JBuilder has it: http://info.borland.com/techpubs/jbuilder/jbuilder2005/bajb/debug_ant.html#ant_debug_ui . - Alexey. Rajiv Jaitly wrote: Please read the disclaimer at the

Re: debug ANT

2005-02-03 Thread Alexey N. Solofnenko
JBuilder has it: http://info.borland.com/techpubs/jbuilder/jbuilder2005/bajb/debug_ant.html#ant_debug_ui . - Alexey. Rajiv Jaitly wrote: Please read the disclaimer at the bottom of this e-mail. +

Re: debug ANT

2005-02-03 Thread Darin Swanson
Likely better to ask these questions in an Eclipse based forum (such as the eclipse.platform newsgroup) On the JRE tab for your Ant launch configuration specify the following VM arguments in the VM arguments text pane: -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=

RE: properties, path with trailing \\

2005-02-03 Thread Dominique Devienne
> -Original Message- > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > > and where to send to ? > > Maybe a FAQ entry about this? > > There's also the Ant Wiki, but IMHO a FAQ entry is more visible. --DD > > See http://jakarta.apache.org/site/contributing.html > and http://jakarta.a

RE: properties, path with trailing \\

2005-02-03 Thread Dominique Devienne
> -Original Message- > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > > Well, IMO that's a real gotcha for WinUsers, as > they are used to write '\' instead of '/' > > and normally (my\normal/path\foo/bar) > it doesn't matter whether you > write \ or / or mixed > > I've seen those beh

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: > Matt Benson wrote: > > >--- Nat Gross <[EMAIL PROTECTED]> > >wrote: [SNIP] > Can the location attribute take a wildcard for an > unknown number of dir > elements leading to one known last element? > -nat Nat, it sounds like you want to use a dirset, po

RE: properties, path with trailing \\

2005-02-03 Thread Rebhan, Gilbert
Well, IMO that's a real gotcha for WinUsers, as they are used to write '\' instead of '/' and normally (my\normal/path\foo/bar) it doesn't matter whether you write \ or / or mixed I've seen those behavior only when it comes to \\fooserver\bla\bla\bla What about a 'central' html file with commo

Re: Script task in imported files seem to fail

2005-02-03 Thread Peter Reilly
Can you provide a small example of the problem ? Peter Geoff Krapf wrote: I just started playing around with a script task, and ran into a weird problem. I'm using the script in a build file that's imported into other build files using the task, i.e., build.xml imports import.xml at the beginning

CruiseControl 2.2.1

2005-02-03 Thread Rebhan, Gilbert
Hi, anyone using CruiseControl 2.2.1 here ? i want use CC 2.2.1 because of the new and feature. scenario : one instance of CC should serve two projects A buildorder.txt drops in, containing the project to build and other projectspecific propertys. i've tried like that : cc_workdir

debug ANT

2005-02-03 Thread Rajiv Jaitly
Please read the disclaimer at the bottom of this e-mail. Hi, I intend to debug ant targets (junits test / java application) from eclipse. is there anyway to start Ant in debug mode

RE: properties, path with trailing \\

2005-02-03 Thread Dominique Devienne
> -Original Message- > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > > Should be mentioned in the manual if not already. Perhaps, but the manual does reference to the Javadocs for Properties which describes the format of Properties files. What you've 'discovered' is fully spelled out

Replace task not working on entire directory

2005-02-03 Thread Antony Paul
Hi all, I have to replace a name in the files in a directory and its subdirectories. I wrote a task for it. But it is replacing tokens in the directory which is specified in the dir attribute. Antony Paul I enabled debugging on and it prin

Script task in imported files seem to fail

2005-02-03 Thread Geoff Krapf
I just started playing around with a script task, and ran into a weird problem. I'm using the script in a build file that's imported into other build files using the task, i.e., build.xml imports import.xml at the beginning of the build.xml file (right after the node opening). Inside import.xml

Re: Replace extension with mapper

2005-02-03 Thread Peter Reilly
Ant's globmapper does not support more that one "*". You need to use a regexpmapper, for example: Robert Soesemann wrote: While copy HTML files (*.htm or *.html) to another folder, I want to rename the extension

swedish sessions

2005-02-03 Thread Andy Kriger
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Replace extension with mapper

2005-02-03 Thread Robert Soesemann
While copy HTML files (*.htm or *.html) to another folder, I want to rename the extension of all those files to *.xhtml. I tried this, but it didn't work. Can you help? include name="**/*.html"/> Best regards, Robert -

AW: error: ...class definition existed..can no longer be found ?

2005-02-03 Thread Jan . Materne
No. The JAR-spec [1] sais: Main-Class : The value of this attribute defines the relative path of the main application class which the launcher will load at startup time. The value must not have the .class extension appended to the class name. Class-Path : The value of this attribute s

AW: error: ...class definition existed..can no longer be found ?

2005-02-03 Thread THUFIR HAWAT
Thank you, Jan, here's my manifest, extracted from the jar: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 Created-By: 1.5.0_01-b08 (Sun Microsystems Inc.) Main-Class: atreides.monsters.TidyTest shouldn't the Main-Class value do the trick, so that I don't need to include the classpath swit

AW: error: ...class definition existed..can no longer be found ?

2005-02-03 Thread Jan . Materne
Your buildfile is correct, but your call for start is not. While compiling you have included Tidy.jar (${includeJar}), but you havent when starting TidyTest.jar. 1) add the classpath when starting via "java -jar" or 2) support a classpath entry for the manifest file of TidyTest.jar Jan > -U

Basel Ahmed/FSG/FDS is out of the office.

2005-02-03 Thread Basel Ahmed
I will be out of the office starting 02/03/2005 and will not return until 02/07/2005. I will respond to your message when I return. Meanwhile, please send all requests to SBL_Duluth. - To unsubscribe, e-mail: [EMAIL PROTECTED]

error: ...class definition existed..can no longer be found ?

2005-02-03 Thread THUFIR HAWAT
Is the source of this error due to build.xml? build.xml

properties, path with trailing \\

2005-02-03 Thread Rebhan, Gilbert
Hi, yesterday when writing a property file i discovered some strange behaviour, i didn't saw before. (Ant 1.6.2 / Win2k / j2sdk 1.4.2_05) normally i write my properties like that : jarpath.test= /libs/test/deploy statics.test=./Global_Files/statics.txt But now i had to put a serverpath in and