$0 refers to the first argument. Where is the end? Is $9 the last
accessible argument or $10...? Then using that reference must be followed by
a split character.
ant -- one two eleven
$10HelloWorld
a) two0HelloWorld
b) elevenHelloWorld
Printing out multiple arguments with $
> If you search the archives you may find more info.
> Dominique Devienne (of the Ant PMC) had either (a) a
> proposal for, or (b) a version of, Ant, that did this
> using imaginary properties ${0}, ${1}, etc. He will
> probably have something to say here. :)
;-) Here it is: http://issues.apache
At 04:23 PM 12/1/2005, you wrote:
Attached is a little utility...
nice program.
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
At 03:17 PM 12/1/2005, you wrote:
If you search the archives you may find more info.
Dominique Devienne (of the Ant PMC) had either (a) a
proposal for, or (b) a version of, Ant, that did this
using imaginary properties ${0}, ${1}, etc. He will
probably have something to say here. :)
searching
If you search the archives you may find more info.
Dominique Devienne (of the Ant PMC) had either (a) a
proposal for, or (b) a version of, Ant, that did this
using imaginary properties ${0}, ${1}, etc. He will
probably have something to say here. :)
HTH,
Matt
--- Ray Tayek <[EMAIL PROTECTED]>
Hello,
you can have several options.
1) Provide the options as the value of one property
like this:
ant -Dmy.java.program.opts="-opt1 value1 -opt2 value2
-opt3 value3 ..."
Then in your build script grab them like this:
2) you can provide the value of each options as a
property:
ant -Dopt1=
hi, i would like to say: ant run arg1 arg2 ... and have the run task
grab the args and pass them to the task as
does anyone have an idiom for doing this? or must i use environment
variables or something else?
thanks
-
Hi,
Check out this link
http://java.sun.com/docs/books/tutorial/jar/
It should help you out.
Cheers,
Mark
Jochen Wurster <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
12/01/2005 04:03 PM
Please respond to
"Ant Users List"
To
user@ant.apache.org
cc
Subject
removing file from jar
Hello Jochen,
with ant you can do something like
Cheers,
Antoine
Jochen Wurster wrote:
>Hi,
>
>is there a way to remove a file from an existing jar file? Other than using
>WinZip ;-)
>
>
>Bye
>
>Jochen
>
>
>
--
Hi,
is there a way to remove a file from an existing jar file? Other than using
WinZip ;-)
Bye
Jochen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
All:
A build file that I had developed under Windows started throwing a
strange error when I tried to run it on a Linux box. The error is
"failed to copy due to null" (not terribly informative). Has anyone
seen this before? I saw the question asked on usenet before but no
answer was given.
Tom Roche 11/30/2005 10:35:26 PM:
How best to make the task include the JAR's classes, not
the JAR itself?
Jon Skeet Thu, 01 Dec 2005 08:50:03 GMT
>>> Have you tried using ?
Tom Roche 12/01/2005 10:57 AM
>> > description="Build project.jar">
>> > jarfile="${build.result.fo
I have taken ant bin path out of the path variable one moment ago, so it is
not listed in the set output.
Steve Loughran wrote:
Safak Ökmen wrote:
ANT_HOME was pointing to "D:\programme\ant".
I'm sorry. I just don't know what's wrong.
I have a command line utility fsum (FastSum) which I tri
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>ant
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
C:\WINDOWS\system32>ant -version
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden
Safak Ökmen wrote:
ANT_HOME was pointing to "D:\programme\ant".
I'm sorry. I just don't know what's wrong.
I have a command line utility fsum (FastSum) which I tried with command
line arguments (fsum something.zip something.zip.md5) and it works fine.
I think that means cmd is recognizing com
Also I wonder, why the eclipse ant plugin works fine.
Matt Benson wrote:
ANT_HOME is used by ant.bat . Which ant.bat is called
is dependent upon your Windows system PATH. The very
fact that you removed the ANT_HOME variable and
received an error message after that makes your PATH
settings sus
If i understood you right, the following should not solve the problem. I
removed ANT_HOME and added the complete path D:\programme\ant\bin to the
Path variable. I checked it. It is the same problem.
Matt Benson wrote:
ANT_HOME is used by ant.bat . Which ant.bat is called
is dependent upon you
ANT_HOME is used by ant.bat . Which ant.bat is called
is dependent upon your Windows system PATH. The very
fact that you removed the ANT_HOME variable and
received an error message after that makes your PATH
settings suspect. I personally no longer use
ANT_HOME; if you get your PATH set up corre
ANT_HOME was pointing to "D:\programme\ant".
I'm sorry. I just don't know what's wrong.
I have a command line utility fsum (FastSum) which I tried with command line
arguments (fsum something.zip something.zip.md5) and it works fine. I think
that means cmd is recognizing command line argument.
That proves that the Java classes in use are those
below ANT_HOME, but it still doesn't prove which ant
executable is ultimately calling the Java code.
--- Safak Ökmen <[EMAIL PROTECTED]> wrote:
> I tried to identifiy the ant version running by
> removing the ANT_HOME
> variable.
> __
>
I tried to identifiy the ant version running by removing the ANT_HOME
variable.
__
D:\programme>ant
Der Befehl "ant" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
D:\programme>cd ant
D:\programme\ant>cd bin
D:\programme\ant\bin>ant.bat -debug clean
Buildfile: build
Hi Safak,
Could you see if you have the Ant.Home and JavaDir are set and the Java
directory is in your Path. It sound like a environment variable/ Path problem.
On the command line if you type "set" you should see a list of environment
variable
Best Regards
Afshin Bozorgzadeh
When you seek it,
Apparently, ant doesn't care of whatever you put in the commande line.
Just a stupid idea: try specifying the extension for the ant script
(ant.bat or ant.cmd)
ant.bat -debug clean
or
ant.cmd -debug clean
Safak Ökmen wrote:
Hi!
It is really strange. -debug doesn't work either.
Look at thi
--- Safak Ökmen <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> here is the output:
>
> __
>
> D:\programme\ant\bin>D:\programme\ant\bin\ant.bat
> clean
> Buildfile: build.xml
>
> one:
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
> D:\programme\ant\bin>
>
> ___
>
>
> Is it po
Hi Matt,
here is the output:
__
D:\programme\ant\bin>D:\programme\ant\bin\ant.bat clean
Buildfile: build.xml
one:
BUILD SUCCESSFUL
Total time: 0 seconds
D:\programme\ant\bin>
___
Is it possibly interacting with the exlipse plugin ant?
Safak.
Matt Benson wrote:
Are yo
Here is the debug output from a test run on XP Pro 2002 for the sample build
file you sent.
C:\TEMP>ant -d clean
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\j2sdk1.4.1_05\jre
Detected OS: Windows XP
Ad
Are you the first owner of this box? I would
thoroughly investigate the possibility that the ant
you installed is not the ant that is being called.
Try using full paths when you run ant for a quick
check; i.e. D:\programme\ant\bin\ant.bat
HTH,
Matt
--- Safak Ökmen <[EMAIL PROTECTED]> wrote
--- Thomas L Roche <[EMAIL PROTECTED]> wrote:
[SNIP]
> I tried it, but it just copies:
>
>description="Build project.jar">
>jarfile="${build.result.folder}/project.jar">
>
>
>
>
>
>
>
> value="foo.bar.project"/>
>
>
>
>
Firs
Here is another sample:
__
D:\programme\ant\bin>ant -debug clean
Buildfile: build.xml
one:
BUILD SUCCESSFUL
Total time: 1 second
D:\programme\ant\bin>vim build.xml
D:\programme\ant\bin>ant -debug
Buildfile: build.xml
one:
BUILD SUCCESSFUL
Total time: 0 seconds
D:\programme\ant\bin>an
Hi!
It is really strange. -debug doesn't work either.
Look at this:
__
D:\programme\ant\bin>ant -debug clean
Buildfile: build.xml
one:
BUILD SUCCESSFUL
Total time: 1 second
__
For this buildfile:
__
ant doesn't recognize any command line argument.
Tom Roche 11/30/2005 10:35:26 PM:
>> How to make include the *contents* of another JAR, rather
>> than just that JAR file itself?
>> I tried
>> > description="Build project.jar">
>> > jarfile="${build.result.folder}/project.jar">
>>
>>
>>
>>
>>
>>
Hello,
I got recently a very mysterious problem when using ant. Projects I was
able to compile, install etc. in the past, now no longer want to be
installed, reloaded, listed or removed, and it all happened after a
restart of my tomcat server (I did not change any config file of that
server i
> How to make include the *contents* of another JAR,
> rather than just that JAR file itself? What I mean:
Have you tried using ? I haven't used it myself, but given
the documentation, it looks like it's what you're after.
Jon
Clearswift monitors, controls and protects all its messaging traff
33 matches
Mail list logo