I used to convert the path to a comma separated list stored in a
property..
However the classpath has all absolute paths (starting with /)
What should the value of dir be in in the zip task ?
If I give it as / all files are ignored
-Nandan
-Original Message-
From: Telang, Nandan [mail
Hi
I have a classpath generated as ...
I wish to create a zip file with all the jars mentioned in that path.
How do I iterate through the element / tell the zip task to include all the
jars ?
Thanks,
-Nandan
The following works under ant 1.6.5:
I inadvertantly omitted the ... in my initial example.
It should be mentioned that if you have spaces in the paths to your
working directory, will not work as expected, as it
will break arguments on
When I type:
./ant -version
I get the following error message:
Unknown argument: -cp
ant [options] [target [target2 [target3] ...]]
Options:
-help, -h print this message
-projecthelp, -p print project help information
...
I'm not even giving it a '-cp' argument.
Any ide
I'd suggest you start here:
http://www.catb.org/~esr/faqs/smart-questions.html
That might help you get a better response.
Bob Noonan wrote:
the task given in the rely generates a:
pathconvert does not support nested fileset
ditto the following example taken from ant.apache.org/manual/
the task given in the rely generates a:
pathconvert does not support nested fileset
ditto the following example taken from ant.apache.org/manual/using.html:
generates:
corona> ant -f filelist.xml
Buildfile: filelist.xml
alt:
BUILD FAILED
/h
You could use PathConvert to convert your fileset into a string with
the list of files. You will probably want to set pathsep=" " and use
arg line="${fileslist}".
So, you have:
I haven't tried it, but it should work.
Hi,
Please forgive my stupidity, but I have spe
I'm sure it's obvious to you but it sure isn't to me: what is it that you're
trying to do?
Also what Ant version are you using and how much experience do you have with
Ant? I'm inclined to guess that you're just getting started with Ant but I
could be wrong
Rhino
- Original Message -
Yes this helps a great deal - it helps me to decide to cut my losses ;)
I have one more throw of the dice, which is to take a look at the
BuildListener
code - maybe, just maybe Ant will be kind enough to deliver me the
correct
target/task so that I can change the attributes before execution.
Hi,
Please forgive my stupidity, but I have spent hours on this ...
Given the following Unix/Linux command line:
java Test.Main -all *.txt
I wrote the following ant task:
Test.Main reports it cannot find file *.java.
So I replaced the 2
Hi Ashley,
It is that hard, and maybe even harder. Antelope has a progress bar to
show how progress of a build. It tries to count the number of tasks
that will be executed prior to the build starting, then updates the
progress bar based on the taskFinished build events, so basically, it is
Hi,
I'm trying to write a method in java that takes a root target and
then walks down the task tree until it comes to the desired object,
but don't seem to find the api to do this. I sort of got it to work
in Ant 1.6.2 but wasn't really happy with the results as I still
don't fully unders
Johannes,
I've written a classloader that handles that specific situation. You can
view the source at:
http://antelope.tigris.org/source/browse/antelope/src/ise/antelope/launcher/SubJarClassLoader.java?rev=1.1&view=markup
This code is distributed with Antelope, the source is available at
htt
To the best of my knowledge there is no tool that an do such a conversion;
you must do it by hand.
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Sethu Prasad G <[EMAIL PROTECTED]> wrote on 10/28/2005 03:37:13 AM:
> Hi,
>
>
>If you want to build everything, have a target called "all",
>or even "*"
>(yes, that is a legal target name), and invoke it.
Writing that target is simple:
Jan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
Rajnish Singh wrote:
Hi Jan,
When we specify '*' in target means that all the target in the specified build files will be executed like when we say
< ant antfile="build1.xml" target="*" /> means all the targets in the build1.xml will be executed.
No that's silly. Ant doesn't do that. The only
On Fri, 2005-10-28 at 12:49, Ben Ryan wrote:
> Hi,
> Apologies in advance if this is a trivial question.
>
> I have looked everywhere I can find, there are probably lots of
> other places, for an example of how to log an error message only when
> the prog run by a java task returns non-ze
Hi Bob
Thank you for the good information provided. I think I'll try
ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile build_log.xml
With extra verbose I got most of the ionformation I need. After running this
ant script I could call a throurth java proghram which analyzes this xml log
Hi,
Apologies in advance if this is a trivial question.
I
have looked everywhere I can find, there are probably lots of other places, for
an example of how to log an error message only when the prog run by a java task
returns non-zero.
Can anybody
help?
Regards,
Ben
--
Have you tried the XML logger? The manual pages on the ant website are
pretty good for instruction on how to use a given logger, but if you need
more help just ask. Otherwise, you can take the XML output and then process
it using XSLT to get the exact detail you want.
If that doesn't do what you
Maybe combination between -logfile and -debug/-verbose ?
Would be easier than writing a new logger ...
Next step would trying the Log4J-Logger and play with the Log4J configuration.
Jan
>-Ursprüngliche Nachricht-
>Von: Remo Liechti [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Okt
Hi
Yes, but this logs also stuff I dont need... Like:
getDocuments:
[ftp] sending files
[ftp] 1 files sent
[delete] Deleting 1 files from C:\temp\mssDocPublisher
This part should look like this in the logile:
Sending Zip file "myFile.zip" to myFTPServer/sopme/location, containin
Hi Jan,
thanks for detailed infos. I see what I can do.
Regards
Cornelius
[EMAIL PROTECTED] wrote:
Hello Cornelius,
for short ResourceCollection is a collection of Resources. A Resource [1] "Describes a "File-like" resource
(File, ZipEntry, etc.)." In the earlier past there were some work on
Hi Remo,
have you tried the "-logfile" option?
Jan
>-Ursprüngliche Nachricht-
>Von: Remo Liechti [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Oktober 2005 12:44
>An: Ant Users List
>Betreff: Logging - I need a concept
>
>Hi all
>I have to implement a loging function to my ant scr
Hi all
I have to implement a loging function to my ant scripts, but I really
don't know how to do it...
I got a script like this like the one attached.
In this script I have some echos, do some file deleting, ftp upload and
call three java programs.
The stuff that has to be logged in ONE file SO
Sorry that doesnt work from 1.2 to 1.7(15.06.2005)
1
2
3
4
Default-Target
Jan
>-Ursprüngliche Nachricht-
>Von: Rajnish Singh [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Oktober 2005 12:36
>An: Ant Users List
>Betreff: RE: problem in e
Hello Cornelius,
for short ResourceCollection is a collection of Resources. A Resource [1]
"Describes a "File-like" resource
(File, ZipEntry, etc.)." In the earlier past there were some work on that area
[2] and we tend to move
to that. E.g. [3,4] supports ResourceCollections - in HEAD of cour
Hi,
how to delegate the path/to/cvs.exe to command ?
i've tried several combinations, f.e. =
What's the right syntax for the command line ?
Gilbert
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 28, 2005 12:18 PM
To: user@ant.apache.org
Hi Jan,
When we specify '*' in target means that all the target in the specified build
files will be executed like when we say
< ant antfile="build1.xml" target="*" /> means all the targets in the
build1.xml will be executed.
Rajnish
-Original Message-
From: [EMAIL PROTECTED] [mailto
What do you mean with ResourceCollection exactly? Could you point me to
a task that already supports ResourceCollection? Or do you mean support
for the mapper? (Sorry, not so deep in ant yet ;)
Cornelius
[EMAIL PROTECTED] wrote:
Would be better to add support of ResourceCollection to (and th
Use the command attribute of .
Jan
>-Ursprüngliche Nachricht-
>Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Oktober 2005 12:14
>An: user@ant.apache.org
>Betreff: setting env variable in ant script
>
>
>Hi,
>
>normally i run my scripts via batfile and do a set P
Would be better to add support of ResourceCollection to (and therefore to
).
Jan
>-Ursprüngliche Nachricht-
>Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Oktober 2005 12:17
>An: Ant Users List
>Betreff: Re: AW: Jar or copy files from multiple unk
Hi,
normally i run my scripts via batfile and do a
set PATH=%PATH%;c:\cvnst
now i have to run the same script on another machine,
where my ant script is called from java and ant-launcher.
Problem = cvsnt isn't on path so script gets cvs error=2
Question =
how to set an env variable in my ants
Hello Jan,
thanks for the quick reply. I will try out the mapper.
I thought about extending the FileSet to use a dirset as base
directories instead of a single dir. What do you think about? Do you
think it could work?
Best Regards
Cornelius
[EMAIL PROTECTED] wrote:
Hi Cornelius,
use only
On Fri, 28 Oct 2005 11:44:50 +0200, arcus(x) - Cornelius Buschka wrote:
>I would like to jar up files from these directories into one jar. Not
>the whole contents but a selection of files from each folder only.
>
>
>
and add a (regex) mapper that removes everything up to /src/ from the file
Hi Cornelius,
use only ${basedir} as dir and includes "**/src/". Maybe you have to play with
nested mappers ...
damn - no mapper support in ...
Ok, workaround - iterating with ac:foreach .
Jan
>-Ursprüngliche Nachricht-
>Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED]
>
Hi Rajnish,
never heard from "*" - nothing in the manual ...
Which target should be executed on "*" ?
Jan
>-Ursprüngliche Nachricht-
>Von: Rajnish Singh [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 28. Oktober 2005 11:34
>An: user@ant.apache.org
>Betreff: problem in enabling wildcard
Hi,
our project contains many source folders that can be found via pattern
${basedir}/**/src.
I would like to jar up files from these directories into one jar. Not
the whole contents but a selection of files from each folder only.
did not work, because the fileset could not find the direc
Hi,
In my project when I am writing it
compiles well through the cmd, but when compiling the same build file through
myeclipse I am getting the error
Target `*' does not exist in this project. If I replace * to some specific
target like 'compile" or "clean" or anything else, it is compiled.
Ne
Currently, our build uses a modified distribution of Ant - all the
optional libraries we need are bundled into the lib directory. We use a
similarly modified version of Eclipse (i.e. the Ant part has the same
changes made).
Needless to say, this is somewhat suboptimal. I want to move to a system
w
linkers? for lnk? -> lnks are shorcuts
And for exes I dont want to create os's own executable but ALWAYS an
win32 exe file.
On Oct 28, 2005, at 1:14 AM, Antoine Levy-Lambert wrote:
Hello Dominik,
since linkers have different names on different operating systems, if
you want to be truly cros
Hi,
Can anybody help me to convert a makefile to build.xml with any of the tools,
is it possible at this moment, write your comments plz,,
Thanks,
Sethu.
-
Enjoy this Diwali with Y! India Click here
42 matches
Mail list logo