Hi,
I'm just reading all the stuff about looping in Ant,
but I' m searching for a simple for-loop, anyone
can give me a hint.
M.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Try the Ant-Contrib Task-Library.
Binaries at http://gump.covalent.net/jars/latest/ant-contrib/
Sources at http://sourceforge.net/projects/ant-contrib/
Jan Matèrne
-Ursprüngliche Nachricht-
Von: Markus Dettori [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 5. Dezember 2002
Hi,
We need to process the newest files which names' contain a determined
number of patterns and discard the rest. In example, we have a folder
that may contain several files:
EMD_ES_20021201_120301.xml
EMD_ES_20021201_143401.xml
EMD_ES_20021204_120301.xml
OK_ES_20021201_120301.xml
Stefan Betermieux wrote:
I have problems starting a Java application via the ant java task.
Whenever I open a Window within the application, it gets immediatly a
dispose() message and the program quits. Is this behaviour intentional ?
Have you specified fork=true in the java task?
--
To
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 9:19 AM
Subject: AW: For-loop in Ant
Try the Ant-Contrib Task-Library.
Binaries at http://gump.covalent.net/jars/latest/ant-contrib/
Sources at
http://jakarta.apache.org/ant/manual/CoreTypes/selectors.html
http://jakarta.apache.org/ant/manual/CoreTypes/selectors.html#filenameselect
http://jakarta.apache.org/ant/manual/CoreTypes/selectors.html#dateselect
http://jakarta.apache.org/ant/manual/CoreTypes/selectors.html#andselect
and maybe
Hi,
I would like to use the propertyfile to create a property
that shall be used later to label the files in the CM.
Could anyone tell me how I can format today's date to
something like 05NOV2002 .
Thanks in advance,
Yaron.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Hi Stefan,
I don't see how to use these selectors to select the filenames with the
latest timestamps. I figured out how to select the filenames with the
patterns but the problem is I must select only one file, and it must be
the one containing the highest date in the filename. I can't use the
Hi,
I would like to use the xmlProperty task to load a list of elements into my
project.
The list looks something like:
A=hello
A.do=true
B=world
B.do=false
C=foo
C.do=true
D=bar
D.do=true
...
The list is static.
How would the XML file look like to load this in my project ?
detlef
--
To
On Thu, 5 Dec 2002, Oscar Farga [EMAIL PROTECTED] wrote:
Is it the only way to create a custom selector?
I think so - alternatively you can do it with script.
There has been some discussion on a similar issue on this list that
lead to the purge task linked from Ant's External Tools page. You
Yaron Ruckenstein wrote:
Could anyone tell me how I can format today's date to
something like 05NOV2002 .
tstamp
format property=TODAY pattern=ddMMM/
/tstamp
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Thank you Stefan,
I've downloaded the purge task from www.dallaway.com/ant. I think it
will be of great use.
Best regards,
Oscar
-Mensaje original-
De: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 05 de diciembre de 2002 10:50
Para: [EMAIL PROTECTED]
Asunto: Re:
On Sat, 16 Nov 2002, Steve Schlaifer [EMAIL PROTECTED]
wrote:
When I run it under ant with fork=false, it generates a
[java] java.lang.NoClassDefFoundError:
sun/reflect/ConstructorAccessorImpl
Could you try a recent nightly build please? This is supposed to be
fixed in 1.6alpha
- Original Message -
From: Markus Dettori [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 9:48 AM
Subject: Re: For-loop in Ant
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 9:19
I've just released 1.3b of xmltask, which fixes an NPE relating to removing
attributes.
http://www.oopsconsultancy.com/software/xmltask.html
xmltask provides the facility for automatically editing XML files as part of an
Ant build. Unlike the standard filter task provided with Ant, it is
Detlef Brendle wrote:
Hi,
I would like to use the xmlProperty task to load a list of elements into my
project.
The list looks something like:
A=hello
A.do=true
B=world
B.do=false
C=foo
C.do=true
D=bar
D.do=true
...
The list is static.
How would the XML file look like to load this in my
Hi,
Is there a diff task (Unix style) for Ant ?
Thanks, Yaron
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
1. The doing target in parallel
target name=do
parallel
doSomething/
/parallel
/target
target
foreach target=do/
/target
I think this would NOT work. The foreach will wait for do-target.
2. The foreach in parallel
target name=do/
target
parallel
foreach
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 12:02 PM
Subject: AW: For-loop in Ant
[1.]
I think this would NOT work. The foreach will wait for do-target.
Right !
[2.]
This don´t work either. Only one instruction in the
Will you modify, test and recontribute the code?
Maybe with
foreach fork=true|false:default=false/
Jan Matèrne
-Ursprüngliche Nachricht-
Von: Markus Dettori [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 5. Dezember 2002 12:16
An: Ant Users List
Betreff: Re: For-loop in Ant
Hi Dominique,
| -Original Message-
| From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
| Sent: woensdag 4 december 2002 17:51
| To: 'Ant Users List'
| Cc: Ant Developers List
| Subject: RE: Problem with typedefs
|
|
| Object o = r.getReferencedObject(getProject());
| // we
Hi friends,
Can any one please give me an example how to use jspc and
precomile jsps. And how to give mapping from the resulting
compiled servlets into the proper jsp in web.xml.
Thankx
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Yaron.
I've wrapped:
http://www.bmsi.com/java/#diff
in an ant task and it works very well (I had to tweak the original source
above a bit). If there are differences in any file a .diff files is created
that looks as if you ran diff from a prompt. The great thing about this is
that if platform
Hi,
I've done jsp precompilng for weblogic by using
the java tag. Maybe it helps:
!-- --
!-- Compile JSPs --
!-- --
target name=jspc depends=init,copyprops,compile,test,copyconfig
java
fork=yes
Note to dismiss the value of ant-contrib's foreach, but many times there
was an acceptable pure Ant way to do the same thing without foreach, which
has its share of quirks. Granted, sometimes there is no Ant way, but like I
said, many times there was. Care to elaborate what you're doing? Just in
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 4:54 PM
Subject: RE: For-loop in Ant
Note to dismiss the value of ant-contrib's foreach, but many times there
was an acceptable pure Ant way to do
But you're still not saying what you're doing ;-) So there's no telling
if/how it was possible to do it in a different possibly 'better' fashion
than using foreach/parallel. Good luck whatever you're doing ;-) --DD
-Original Message-
From: Markus Dettori [mailto:[EMAIL PROTECTED]]
Sent:
Hello,
How would you go about adding a file with its full path to a zip?
Say C:\Files\MoreFiles\Thefile.txt
Something like this doesn't work:
zip destfile=${ZIPFILE} duplicate=fail update=true filesonly=true
basedir=/
includes=C:\Files\MoreFiles\Thefile.txt /
Got a feeling it's
Look at the Ant docs for zip and notice the use of zipfileset. That
should provide what you want. There are examples in the docs.
Jake
At 06:05 PM 12/5/2002 +, you wrote:
Hello,
How would you go about adding a file with its full path to a zip?
Say C:\Files\MoreFiles\Thefile.txt
I am trying to accomplish the following:
have ant based nightly build scripts which are run through cron job.
The nightly ant build script is a root ant script which itself invokes other ant
scripts (for different component) to do the build.
At the end of the build (successful/failure -
This is usually done using the MailLogger I believe. --DD
-Original Message-
From: Rahul Biswas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 3:23 PM
To: Ant Users List
Subject: Question about nightly builds using ant
I am trying to accomplish the following:
have
How about using Anthill or CruiseControl? They'd take care of that for you.
Rahul Biswas wrote:
I am trying to accomplish the following:
have ant based nightly build scripts which are run through cron job.
The nightly ant build script is a root ant script which itself invokes other ant
Is there a way in ant to include one build file from another? I am
still pretty new to ant, but it looks like the number of targets in a
build file could potentially get quite large, and I am wondering whether
there is a way to break up the build file into managable pieces.
Thanks in advance,
We have both. We try to keep the CC build as short as possible for rapid
feedback, and do more stuff in the nightly build, like running expensive
tasks that keep us informed about the health of the code base.
No point setting up a separate CC build (or AntHill I guess?) for a nightly
build when
See the FAQ about XML entity includes. Not ideal but it works (it's also
been discussed on the list before). Seems to be getting closer to have a
real import in Ant, but it's not there yet. --DD
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
(I know this is off-topic for this list, but I need to find an answer
fast or change approach so I was hoping someone might be able to give me
a pointer!)
I've got an application which is packaged as a single jar, launched by
'java -jar myapp.jar'. The problem is I need to be able to get the
I believe Java puts the path of that JAR in the java.class.path Java System
Property. Or use Steve's L. trick of doing
someClass.getProtectionDomain().getCodeSource().getLocation().
--DD
-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 2:13 PM
Subject: RE: [OT] getting name of launch jar
I believe Java puts the path of that JAR in the java.class.path Java
System
Property. Or use
We use the following trick:
String className = MyClass.class.getName();
URL myClassUrl = ClassLoader.getSystemResource(className.replace('.',
'/') + .class);
URL jarUrl =
((JarURLConnection)myClassUrl.openConnection()).getJarFileURL();
Ciao,
Gordon
Laurie Harper wrote:
(I know this is
I learned it from you, so for me it's your trick ;-)
Nice of you to give credit where it's due of course. --DD
-Original Message-
From: Steve Loughran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 4:28 PM
To: Ant Users List
Subject: Re: [OT] getting name of launch jar
Which kind of breaks down if the class is not loaded from the System class
loader, but a child loader of it (or a child loader of a parent of the
system loader), and if the class is loaded from a classes/ directory.
Note that since the question was about java -jar my.jar, both points above
are
Wow, that was fast! Both methods seem to work, awsome! I might have
eventually figured out the first option but I doubt I'd have found the
second one :-)
Thanks,
L.
Dominique Devienne wrote:
I believe Java puts the path of that JAR in the java.class.path Java
System
Property. Or use Steve's
Dominique Devienne wrote:
Which kind of breaks down if the class is not loaded from the System class
loader, but a child loader of it (or a child loader of a parent of the
system loader), and if the class is loaded from a classes/ directory.
Indeed. That wasn't an issue for our particular case.
Just seems cleaner to me that's all. I'm there are cases where both methods
break down anyhow (make your own class on the fly with BCEL and load it).
--DD
PS: You still assume the class is coming from a JAR. I'd have to check
myClassURL to see if it's file: based, http: based, jar: based, etc...
Hello,
I have a number of indepent subprojects with similar build.xml, I would like
to create a base.xml which will be included by other build.xml's. However,
I couldn't find any way for build file inclusion in Ant. Any help?
Thanks
hacking bear wrote:
Hello,
I have a number of indepent subprojects with similar build.xml, I would
like to create a base.xml which will be included by other build.xml's.
However, I couldn't find any way for build file inclusion in Ant. Any help?
You can use XML based inclusion (a little
Thanks!
Looks like a great HACK in Hacking Bear's toolbox!
From: Conor MacNeill [EMAIL PROTECTED]
Reply-To: Ant Users List [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Subject: Re: including another build.xml
Date: Fri, 06 Dec 2002 11:45:51 +1100
hacking bear wrote:
Hello,
I
hi everyone
i want to know something abt using ant with websphere?
Cold someone give me an example or snapshot of
build.xml file which could be used in websphere??
i just wanna know how to deploy the application in
websphere using ant??
what is the ant task to call to deploy and to create
the
hi everyone
i want to know something abt using ant with
websphere?
Cold someone give me an example or snapshot of
build.xml file which could be used in websphere??
i just wanna know how to deploy the application in
websphere using ant??
what is the ant task to call to deploy and to
Okay,
I installed a new OS and I am starting from scratch again. Got TC going in only
a few minutes, but now I'm stuck on Ant. Last time I was running Ant, I had a
homegrown shell script that would set the necessary env. vars and run
$ANT_HOME/bin/ant (or something like that).
I'm looking for a
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 6:18 PM
Subject: RE: For-loop in Ant
But you're still not saying what you're doing ;-)
?!? Thought I told you in the last posting.
Here is the
51 matches
Mail list logo