> str=File.basename(Dir["J:/test/*.xml"].sort[0]).gsub(/(\w{8}).+/, $1)
> $project.setProperty "myproperty", str
> ]]>
>
> ...
>
> $${myproperty} == ${myproperty}
>
>
> will give you =
> ${myprop
ct.setProperty "myproperty", str
]]>
...
$${myproperty} == ${myproperty}
will give you =
${myproperty} == 20070921
Regards, Gilbert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Why have the wrapper target at all? Add the if condition to the "_pmd"
target itself.
-Rob Anderson
> -Original Message-
> From: Eric Wood [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 21, 2007 6:18 AM
> To: Ant Users List
> Subject: Best way to perform this type of conditonal t
I would like to get the filename of the first file in a directory and then get a
particular part of the filename. The files all basically follow this format:
20070921_0001.xml. Currently I'm using a combination of windows command line and
ant. It looks like the following
in a bat file (I know it c
I thought that was the way that runtarget worked so I think that you are
correct, there must be something else. I will check further to see. I
will also look at the use of macros. Sometimes it is hard for me to
think of things in the "ant" way. I appreciate you help.
Eric
-Original Messag
The "ant" way is not to think in terms of calling targets,
it is more in-terms of invoking a target, and the
target reads it's dependences.
In ant 1.6 the unit of reuse/encapsulation/block would be a macro.
I would use a macro instead of each of your pmd targets, and
call them directly from the p
Is there a way to do this in version 1.6.5?
eggie5 wrote:
>
> I need to load some CSS files into the concat task, but they need to be a
> certain order. How should I do this? Maybe number the file names? Is there
> any build in fileset functionality for this?
> Alex
>
>
--
View this messa
Hi Eric
If you look athttp://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html
you can use java jar with fork=false (if you dont want to spawn a new JVM)
Does this help?Martin
Gainty__Disclaimer and
confidentiality noteEverything in this e-mail a
Thanks,
I have created a bunch of targets for PMD that I would like to keep, so
the question is how do I call these targets from the "pmd" target while
still keeping the conditional clause?
I found that if I use antcall (or runtarget like in the code below),
then properties that are set that I w
Opp, I hit send by accident, (gmail does not have
the same key shortcuts as emacs).
... do pmd stuff
On 9/21/07, Peter Reilly <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote:
> > I want to only call a targe
On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote:
> I want to only call a target ( _pmd ) if the property "pmd.jar" is set.
>
>
>
>
>
> depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" />
>
>
> The problem I have with the code above is
Why not use instead of ?
On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote:
>
> I want to only call a target ( _pmd ) if the property "pmd.jar" is set.
>
>
>
>
>
> depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" />
>
>
> The problem I have with the cod
I want to only call a target ( _pmd ) if the property "pmd.jar" is set.
The problem I have with the code above is that runtarget seems to run in
its own JVM so properties that are set in there that I need to reference
later are not available after it runs. Also, if I a
Yasothamani wrote:
Once by rebooting the machine we don't faced the problem, but when the
cycle continues project 1.x and then project 2.x then the problem coming
into picture. We are using clearcase and windows box for java compilation.
*Doubt:* classes directory and it's class files are no
Hi,
yet another xmldiff tool =
https://xmldiff.dev.java.net/
project site says =
"...
xmldiff aims easy integration in automation tool such as Ant
and maven. IDE integration is also planed.
..."
so maybe it ships with an ant task.
Regards,
Gilbert
--
Once by rebooting the machine we don't faced the problem, but when the
cycle continues project 1.x and then project 2.x then the problem coming
into picture. We are using clearcase and windows box for java compilation.
*Doubt:* classes directory and it's class files are not part of
clearcase vob
Yasothamani wrote:
Very thanks Steve. I don't know the exact meaning of having quiet. I
will try without having quiet during the delete operation.
> If there is
any command so that it will forcibly delete the directory(classes).
no, because if delete cant do it, it means you are on a window
Very thanks Steve. I don't know the exact meaning of having quiet. I
will try without having quiet during the delete operation. If there is
any command so that it will forcibly delete the directory(classes).
Thanks & Regards
YASOTHAMANI R
Objectel Development
India Comnet International
Stev
On 9/21/07, Hardy Grueneis <[EMAIL PROTECTED]> wrote:
> hello,
>
> i want to ask if there will be an ant 1.7.1 release in the next time?
No-one has volunteered to be the release-manager.
When this happens, it will take 1 - 2 months to output a release
as where will need to be a test release first
>i want to ask if there will be an ant 1.7.1 release in the
>next time?
as we dont have a release manager, it will need time ;)
>is there an easy way to get a bug-fixed version?
compile yourself?
Jan
-
To unsubscribe, e-
hello,
i want to ask if there will be an ant 1.7.1 release in the next time?
i want to use ant 1.7 but because it does not work with cactus 1.7 (with we are
using for testing) i can't change to ant 1.7.
is there an easy way to get a bug-fixed version?
thanks & regards
hardy grüneis
Hi,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 21, 2007 11:30 AM
To: user@ant.apache.org
Subject: AW: Access server via alias ?!
*/
hmmm - that works for me. I tested with //computername/c$
Is there a net share "deploy"? Could you access
Yasothamani wrote:
Is clean build means to delete the classes directory, then we are doing
that during java compilation. You can see the target clean in the
attached build.xml where the directory is deleted.
Thanks & Regards
YASOTHAMANI R
Objectel Development
India Comnet International
well
hmmm - that works for me. I tested with //computername/c$
Is there a net share "deploy"? Could you access this UNC via Windows Explorer?
Jan
>-Ursprüngliche Nachricht-
>Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 21. September 2007 10:34
>An: user@ant.apache.org
>
Hi,
i need to access a server via his aliasname, but
the following snippet doesn't work =
Files == ${toString:bla}
BUILD FAILED
... \\cvsprod\deploy not found.
Running Ant 1.6.5 on Win 2000 / 2003, jdk 1.4.2_08
Is there any cmd line tool for windows available ?
Any ideas ?
Regar
There is also xmlunit at http://xmlunit.sf.net/ which compares xml files
but not sure it has an ant task.
--
Miroslav
Venkateswarlu Gajulapalli napsal(a):
> Hi ant users,
>
>
>
> I came across a Requirement, where in I need an Ant task for "Diff" ing
> 2 xml files.
>
> I need to compare 2 xml f
26 matches
Mail list logo