Try this:
http://www.mail-archive.com/ant-user@jakarta.apache.org/msg03059.html
It has a custom task to ask the user a question...
Alan.
-Original Message-
From: Krystan Honour [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001 13:20
To: Ant Users List
Cc: [EMAIL PROTECTED]
Subject: Re:
PROTECTED]]
Sent: 12 November 2001 13:57
To: Alan Pearlman Spencer
Subject: Re: Prompt
This looks good, I`m not sure how to go about using these tasks as I am
quite new to ant. I compile the src but where does the .class file want
to
be placed so that ant may see it ?
- Original Message
First point I'd make is that it is easier (and better?)
to define the classpath for ANT (ant only) in the batch file
(like the ant.bat, it handles it's own jars nicely)
and set up a fileset for your classpath inside the build
script. This means you can have incompatibilities between
these (like
- Original Message -
From: Alan Pearlman Spencer [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Tuesday, November 13, 2001 11:29 AM
Subject: RE: build.bat problem
First point I'd make is that it is easier (and better?)
to define the classpath for ANT (ant only) in the batch file
This is an (annoying) classpath issue.
If you take a look at the definition of the tasks it says it needs Xalan
2
If you get this version of xalan and put it in the lib directory I think
that fixes the problem.
Let me know how it goes...
Alan.
-Original Message-
From: Kazandjian Erik
/classpath
/available
The pathelement works, but I can't get the fileset to include all dirs
in the tree...
Any ideas?
Thanks,
Alan.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive,
National Digital Park
Or copy?
Copy will only copy the files it needs.
-Original Message-
From: Matt Lyon [mailto:[EMAIL PROTECTED]]
Sent: 14 November 2001 14:16
To: Ant Users List
Subject: RE: synchronize directory task
Have you checked out move?
-Original Message-
From: Jeff Sahol [mailto:[EMAIL
I believe you need to use a property to do this.
classpath refid's will not be passed (as they are XML IDs and it is a
different XML file).
Not as powerful, but it will be passed to other scripts...
Maybe (big maybe) you could xml include other scripts using an ENTITY???
Alan.
-Original
You can't (as far as I know)
Only properties are passed...
What I do is define the properties that are needed to recreate the
classpath,
not ideal, but it works.
like classpath.lib.dir, classpath.classes.dir, classpath.other.jar???
Sorry I can't help more...
Alan.
-Original Message-
=my.file.txt type=file property=found
classpath
fileset dir=${search.root}
include name=**/
exclude name=**/*.*/
/fileset
/classpath
/available
And also with filesets, but I'm stuck. Any ideas?
Alan.
-Original Message-
From: Alan Pearlman Spencer
Sent: 08 November 2001 18
Thanks a million!
I'll play with the file attribute, don't know how I missed that!
Thanks,
Alan.
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: 14 November 2001 17:06
To: Ant Users List
Subject: Re: Is there a way to search a directory structure?
--- Alan Pearlman
I have used these together...
I think is is because ANT tried to catch output (System.out) from tasks.
I would use a file appender if I were you...
Alan.
-Original Message-
From: Christopher Berry [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 21:59
To: Ant-User (E-mail)
Subject:
I have this same configuration and I have a target
that sets the flag before getting on with it.
target name=debug_dist depends=set_debug,dist/
Where set_debug is like setmode...
And Dist depends on an init that sets debug to false.
Then I use debug in my javac calls...
Alan.
-Original
Hi,
Is it possible to give the ant command line a different way?
I'm using ANT in NetBeans and in Cruise Control etc... And would like to
pass in -debug -quite etc...
Thanks,
Alan.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive
Hi,
I've found a way:
If you want to define a new target or property
Add this to the top of the build.xml file:
!DOCTYPE project [
!ENTITY test-file SYSTEM testInclude.xml
]
And then start the project:
project name=project default=all basedir=.
And then
Try this:
If you want to define a new target or property or classpath
Add this to the top of the build.xml file:
!DOCTYPE project [
!ENTITY test-file SYSTEM testInclude.xml
]
And then start the project:
project name=project default=all basedir=.
And then
For some reason, by default, ANT passes -g:none to the compiler and
there is
no way for it's default to be the same as Javacs default which is
-g:line
as far as I know.
Also, in ANT you only have debug on (all) or off (none), check out the
docs for javac
and you will see it has more options...
I
No it is not possible.
Search the archive and you will find the question asked many times.
I posted yesterday about how to do an XML cluge to include snippets of
build scripts...
Alan,
-Original Message-
From: Eddie Espino [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2001 22:15
To:
/bugzilla/show_bug.cgi?id=4127
A patch has been submitted. Please wait for it to be committed.
Magesh
- Original Message -
From: Alan Pearlman Spencer [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Tuesday, November 20, 2001 3:49 AM
Subject: RE: Line numbers on Stack traces
Is Anyone using the wlrun task and is it supported?
Can't find docs except the javadoc...
Thanks,
Alan.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive,
National Digital Park,
CityWest Business Campus
convert a relative path to an absolute one when I
don't have any absolute
paths?
I thought PathConvert might help, but it does not look like it.
I need to use something apart from string concats as I usually do.
Any ideas would be very welcome...
Thanks,
Alan.
Alan Pearlman
.
Alan Pearlman-Spencer
MobileAware Ltd.
3225 Lake Drive,
National Digital Park,
CityWest Business Campus,
Dublin 24.
Ireland.
Phone: +353 (0)1 2410 500
Fax: +353 (0
the
purpose.
Is it possible to have an ant call run in a seperate VM?
Maybe it would be nice to have a fork task that forked to run
the tasks within???
Thanks,
Alan.
-Original Message-
From: Alan Pearlman Spencer
Sent: 28 November 2001 09:28
To: Ant Users List
Subject: Problem
stop the cruise control process.
I presume the same problem would occur if I tried to delete the files at
the end
of the ant script running.
Any ideas?
Thanks,
Alan.
-Original Message-
From: Alan Pearlman Spencer
Sent: 28 November 2001 10:18
To: Ant Users List
Subject: RE: Problem
D'oh.
Never noticed that one. I'll need to do another trawl through all the
tasks.
Thanks,
Alan.
-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: 30 November 2001 09:37
To: Ant Users List
Subject: RE: Copy to map dos to unix?
Is it possible to convert dos to unix
25 matches
Mail list logo