From: Wannheden, Knut [EMAIL PROTECTED]
What about creating a controller build file that is responsible for
creating the templated build files and invoking them? That
is the 'hack'
solution idea, I suppose.
That way you probably would have to use system properties to tell the
Hi everybody.
In short: I have folders a and b, a contains a.java (no package), b contains
b.java (again no package). class a depends on class b. I try to compile the
module for a ( b is in another module). Even if I put b in the classpath of
javac task in and build.xml when compiling module for
Finally someone has this problem.
I had the same problem and this forced me to call the javac using exec.
This is actually very strange. Using javac from the command line does
compile any .java files lying the classpath if you are compiling a class
which uses those files.
But the same thing
Cristian,
Use multiple source paths via src elements
javac
src dir=a/
src dir=b/
/javac
Once you have that working, then you might think about why you are not
using packages :-)
Conor
Cristian Caprar wrote:
Hi everybody.
In short: I have folders a and b, a contains a.java (no
Conor i have a problem with that...
using multiple src directories compiles all the files in both the
directories..
excluding the files is a solution but what happens is that if the same file
is present in both the directories you get the duplicate class error.. which
you must be aware of by
Hi Conor,
I must mention that I gave the situation as a simple example, it is not my
real source (which has of course packages :)).
Also, I would like to know why it's not working with classpath containing
the source files, not with multiple src (which of course will work but is
not my intention
Hi,
the online docs are for ant1.5beta1; as they say in big letters on the
start
page if this is not your version, all bets are off
ohh yeah. Now i also see the note of 1.5 in the manual. Seems that you guys are
really quick in upgrading online docs to beta versions :)
Marc, you could
Just use Eclipse IDE (www.eclipse.org), ant support
is awesome ;)
I await a MacOS X version in the release tree. They gave a very
impressive demo at WWDC two weeks ago, so there is hope.
I still didn't see MacOS X in there download pages.
Did the WWDC demo was on running on MacOS X ?
--
To
-Original Message-
From: max [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 17:03
To: Ant Users List
Subject: Re: Borland Jbuilder finally adds ant support (at a price)
You say awesome, and I ask you the following:
How do you come from the possible error output from ant (e.g.
-Original Message-
From: Carl Parrish [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 19:53
To: Ant Users List
Subject: Re: javadoc Documentation
Oh btw I'm running ant 1.4.1
Carl
javadoc2 is deprecated, at least as of ant 1.4.1. I've not had any problems
with nested filesets
Guanling Chen wrote:
Greetings,
I am using netbeans for Java development and using
javacc task for my compiler. I'd like the output Java
files of javacc has a package name, but I couldn't
figure out how to do it. However, I see jjtree task
has an attribute named nodepackage that does
Hi!
I've tried to use the MimeMail task to send JUnit test reports.
When I use:
taskdef name=mimemail
classname=org.apache.tools.ant.taskdefs.optional.net.MimeMail/
tstamp/
mimemail messageMimeType=text/html
messageFile=${destin_dir}/junit-noframes.html
Sujan Digumarti wrote:
Conor i have a problem with that...
And we have a solution for you ...
using multiple src directories compiles all the files in both the
directories..
excluding the files is a solution but what happens is that if the same file
is present in both the directories you
Thanks a lot!!
Regards,
Sujan
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5:10 PM
To: Ant Users List
Subject: Re: file dependencies and sourcepath
Sujan Digumarti wrote:
Conor i have a problem with that...
And we have a solution
Thanks a lot.
I will try that for sure. Unfortunately, we have some old legacy code in our
application (stands for module b) and we added some functionality that use
code from the new core (module a). And the core is still using some legacy
code (will be removed soon). So we get the circular
Hi again!
I'm not totally sure but it seems that this odd behaviour can be avoided
if I put in a sleep before sending the mail.
Has anyone noticed this before?
/Peter
-Original Message-
From: Peter Janson [mailto:[EMAIL PROTECTED]]
Sent: den 23 maj 2002 13:20
To: [EMAIL
Marc,
The fragment below should do what you need. You can also use the
${ant.project.name} directly.
property name=app.name value=${ant.project.name}/
--Maciej
-Original Message-
From: Marc Logemann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 9:21 AM
To:
Hi,
for an university lecture I've got to write an introduction into ant, but I
apparently don't even manage to install it correctly...:-(
I work with a GenuineIntel Pentium(r) II Processor Intel MMX(TM) Technology,
64 MB RAM. Windos98 is installed.
Everytime I execute ant.bat (without arguments
Peter Donald (have to use full name because this list is
s full ;) , any
hint on how to include a basic templating mechanism with current Ant?
I recall you favor templating, and I'm sure you can help us
(I'm interested
too) and give us some advice.
Just to briefly describe how
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:58 PM
...
--- Gordon Tyler [EMAIL PROTECTED] wrote:
But if you think about it, what purpose would there be to have the
following two files in the same directory:
log.jar
Julia Schneider wrote:
Hi,
ant
no memory left in environmental space
no memory left in environmental space
no memory left in environmental space
command or filename not found
Is my System to old for ant? Did I do anything wrong?
It wasn't you who did something
-Original Message-
From: Gordon Tyler [mailto:[EMAIL PROTECTED]]
... why
distinguish
them *only* by case? It doesn't impart any useful
information.
On the other hand (relative my reply to a previous message),
the different capitalizations of AnyLongString vs.
Hi,
I am trying to build ant script that will fail in the case where a
particular properties file is not loaded, where the name of the properties
file is specified as a property on the command line. I have tried the
following, which works fine if the file is not loaded, however it also fail
if
Don't worry, fixed:
target name=check_envfile unless=${Eden.envfile.set}
should be:
target name=check_envfile unless=Eden.envfile.set
Knew it was simple.
-Original Message-
From: Michael Barker [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 15:35
To: Ant Users List (E-mail)
Subject:
Arshad,
1. Is there any way to compile C or C++ file using ant ? I believe it can be
done, but there is alot of work there. It would take some custom tasks and
I don't know if we can handle as much as products like VC++ and Borland
handles under the covers.
I am trying to determine if this is
I've been experimenting with the jspc task and it appears to be exactly
what I need. I'm trying to deploy precompiled JSPs, however, and from
what I understand jspc.sh (the command-line version) is supposed to
create a file that contains the servlet mappings, to be included in
web.xml. All I
Hi all,
Below I've included the output from an ant build. Can anyone tell me
how come the BUILD FAILED notification appears in the middle of the
output, rather than at the end (as it usually does)? I am not using the
parallel task anywhere in my build.xml file.
Any help much appreciated.
I can see in the source that it's not implemented yet. (at least in
Beta 1).
- Original Message -
From: Benjamin Reed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 7:38 AM
Subject: jspc task -- no servlet-mapping file?
I've been experimenting with the jspc task
See http://marc.theaimsgroup.com/?l=ant-userm=102201011129362w=2 .
condition just sets a property if it's elements are true. Then you must
use targets and proper dependencies between them to perform something
conditionally. What you want to do is only support by ant-contrib's if
task (search
Not sure I fully understand your question, but the copy task can have a
mapper sub-element. The flatten mapper might be what you want??? --DD
-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:03 AM
To: [EMAIL PROTECTED]
Subject: Copying
In our build process we sign jars with netscape's signtool, but I would like
to switch that to use javasign and ant's SignJar task.
Is that pretty much an even switch or do I need to be concerned about
certain thing?
Does anyone know of a comparison document between the two?
Using SignJar is
See the javac documentation snippet below. AFAIK, ant up to 1.4.1 always put
the sourcepath option to javac, and thus the problem you were seeing.
I've always explicitly used -sourcepath myself when calling javac.exe from
my makefiles, and agree with Conor that looking for Java sources on the
Vaguely related to the subject only, but to jump to the correct line in
source where javac compile errors occurred, when running an ant build from
within Visual Studio (sic!), I wrote a tiny Ant build listener that
reformatted error messages to be compatible with VS (since the latter cannot
be
Robert Priest writes:
In our build process we sign jars with netscape's signtool, but I would like
to switch that to use javasign and ant's SignJar task.
Is that pretty much an even switch or do I need to be concerned about
certain thing?
Does anyone know of a comparison document
- Original Message -
From: Conor MacNeill [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 8:09 AM
Subject: Re: How can i...
Brown, Michael wrote:
Arshad,
1. Is there any way to compile C or C++ file using ant ? I believe it
can be
done, but
The -emacs output was not what Visual Studio liked?
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 12:11 PM
Subject: RE: Borland Jbuilder finally adds ant support (at a price)
Vaguely related to the
Steve,
This looks great, but evaluating the fact that right now we have three
platforms to build C and C++ files on. The end result has over 80 dll's and
exe's with dependencies and several combinations of platform specific issues
going on. It will take me more analysis and evaluation to
Would it be possible to create a specialization of FileSet that could
accomplish this? Looking at ClassfileSet, which extends FileSet, it appears
that it might be doable by overriding getDirectoryScanner(Project), possibly
having it return a specialized DirectoryScanner that is in fact a
Thanks for the information Drew.
I think for right now, I am going to continue using the exec.
Don't know of a comparison document. But I could try to dig up the
Docs on each from Netscape and Sun if it's important to you.
Thanks, but you don't have to do that. I will go out to their sites
On Thursday, May 23, 2002, at 02:06 AM, GOMEZ Henri wrote:
Just use Eclipse IDE (www.eclipse.org), ant support
is awesome ;)
I await a MacOS X version in the release tree. They gave a very
impressive demo at WWDC two weeks ago, so there is hope.
I still didn't see MacOS X in there
Not enough... Here's the code (that way someone can tell me how I should
*really* have done it ;-):
package com.lgc.jax.tools;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import org.apache.tools.ant.BuildEvent;
import org.apache.tools.ant.DefaultLogger;
/**
* An ANT build
- Original Message -
From: Marc Logemann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 12:33 AM
Subject: Re: war task
Hi,
the online docs are for ant1.5beta1; as they say in big letters on the
start
page if this is not your version, all bets are off
- Original Message -
From: Julia Schneider [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 6:37 AM
Subject: no memory left when executing ant.bat
Hi,
for an university lecture I've got to write an introduction into ant, but
I
apparently don't even manage to
you should know that ant1.5 beta makes it easier, with fail unless
available property=file.found file=foo /
faile unless=file.foundno foo/fail
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
looks ok to me. You going to submit it to go into ant1.6?
- Original Message -
From: Dominique Devienne [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Thursday, May 23, 2002 12:03 PM
Subject: RE: Borland Jbuilder finally adds ant support (at a price)
Not enough...
Well no, but feel free to use it however you want though. I was finally
given authorization to release such little code'lets that have nothing to do
with the main business of my company, so...
But I really didn't think it was of interest to anyone. Who runs Ant builds
from within Visual Studio
I have a properties file that will be of the form *version.properties. How can I
load properties form this file into Ant? I don't know what the prefix will be and
there *should* only be one instance of that file in the directory I want to search. I
just don't know the entire name of the
I have win 98 and i am trying to run ant 1.4, here is what I get:
C:\ant
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the client VM
Add this line to config.sys
shell=c:\command.com c:\ /p /e:32768
The /e switch gives windows more environment space.
Conor
Thanks a lot, Conor. It worked out. Finally I can begin working!
Julia
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
If has you say, the file is unique where you look for it, define a fileset
that finds it, then convert that fileset to a property. Then use that
property in property file...
fileset id= propfile dir=somedir includes=**/*version.properties /
property name=propfile refid=propfile /
property
I tried htis, and it works, with one alteration:
path id=version
fileset dir=${build.dir} includes=*.version/
/path
property name=version.file refid=version/
property file=${version.file}/
The refid on a fileset returned a raw .toString() on it
--- Sayatovic, Brian [EMAIL PROTECTED] wrote:
I have a properties file that will be of the form *version.properties.
How can I load properties form this file into Ant? I don't know what
the prefix will be and there *should* only be one instance of that file
in the directory I want to search.
Works with fileset out of the box with 1.4.1 I believe, but you can prove
me wrong ;-) --DD
-Original Message-
From: Sayatovic, Brian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:23 PM
To: Ant Users List
Subject: RE: How do I load a wilcard properties file?
I tried htis,
With the help of the responses to my alst question, I'm now reading my wildcarded
properties file. But now I've hit another problem. I now want to include this
properties file, along with the built classes, in my jar. Here's my snippety:
jar jarfile=${lib.dir}/${project.name}.jar
Never mind -- it was an honest, though stupid, mistake (I had the file ALSO existing
in the ${build.classes.dir!})
Regards,
Brian.
-Original Message-
From: Sayatovic, Brian
Sent: Thursday, May 23, 2002 4:34 PM
To: Ant Users List (E-mail)
Subject: Jar task adding file twice
With the
Try turning echoing on in ant.bat to see what the 'java' command line
looks like. If you don't see anything obvious, send it along.
Diane
=
([EMAIL PROTECTED])
__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
I want to write something like this in Ant:
property name=longdir value=/base/rootdir/subdir1/
subdir2/subdir3/subdir4/
which actually works, but produces a string with whitespace before
subdir2.
Is there a way to break strings across lines (without introducing extra
-Original Message-
I want to write something like this in Ant:
property name=longdir value=/base/rootdir/subdir1/
subdir2/subdir3/subdir4/
which actually works, but produces a string with whitespace before
subdir2.
Is there a way to break strings across lines
--- Malar Ravi wrote:
In the following code I know that I cannot have comma separated list
of directories in the dir attribute of fileset. I would appreciate it
if someone could give me some hints on how to parse the dir.str so that
I can call the target war-copy for each directory in dir.str
--- George McKinney [EMAIL PROTECTED] wrote:
The brute force way would be
property name=pt1 value=/base/rootdir/subdir1//
property name=pt2 value=subdir2/subdir3/subdir4/
property name=longdir value=${pt1}${pt2}/
Actually, I'd call that the fairly standard Ant way -- the brute
I am new to Ant. I am working on a huge project and right now we have a directory
structure that would look something like this.
mod1\mod2\mod3\xymodule
x.java
y.java
mod1\mod2\mod3\abmodule
--- George McKinney wrote:
The brute force way would be
property name=pt1 value=/base/rootdir/subdir1//
property name=pt2 value=subdir2/subdir3/subdir4/
property name=longdir value=${pt1}${pt2}/
Although you might prefer a ${base} property that has the common root
and
The goal, at least in my case, would be to parameterize the list of
directories, so that the build file could be generically used by a number of
modules, each defining their own set of packages. As I (an Ant newcomer) see
it, the alternative is to generate module specific build files from a
-Original Message-
From: Mike Cepek
Having to write:
property name=header1 value=amp;copy; Copyright SMSI,
2000, /
property name=header2 value=2001, 2002lt;brAll Rights
Reserved/
property name=javadoc_header value=${header1}${header2}/
is amazingly unsatisfying.
The XML spec explicitly stated that XML was not designed to be 'human
readable'. That's why there are no provisions (correct me if I'm wrong) for
line continuation. Simply write everything on the same line, or head the
suggestion on using Ant differently. --DD
-Original Message-
From:
I saw the note under the javac task in the Ant docs, and I also searched the
mailing list archives, so I apologize if this has been covered (if so, and
you can point me to the thread in the archives, thanks in advance!)...
I am converting a project that uses make to Ant. The code is not as well
Could you demonstrate you package hierarchy and what needs to be
compiled/translated first, second, third, etc... a bit more practically? By
that I mean example package names (mangled if you want, which what sources
before to what logical module) and pseudo (ant) code to describe the build
steps
Yes, by all means, send it to me personally or through ant-user at your
convenience ;-) And thanks for offering!
I am very much interested by your approach. I know I need a templating
system for the builds of the projects I'm trying to integrate / homogenize,
but just don't know how to go about
I believe I have it working now. I just needed to get the includes and
excludes properly defined. Part of what was throwing me off was how many
darn dependencies this package has in the other code, so when it did compile
stuff, it compiled tons of other Java sources (that it depended on). But,
Hi there,
I want a task to be executed on several files that match a pattern
(*.java for example). I looked in the documentation but didn't find
anything. I don't believe the Ant task can be executed on a fileset, or
that the build file include wildcards? No luck with targets either...
I'm open
Well, something 'smells' in what you describe (in the Martin Fowler way ;-).
You say that p2 depends on p1 p3, but you need to compile it first! That's
strange. Your javac task if indeed p2 depends on p1 p3 will probably end
up compiling p1 p3 code between it will 'see' p2 depends on classes
It actually depend what you want to do...
If you want to execute 1 Java command for a bunch of Java files, and the
Java command takes all the sources on it's command line, you can. You
convert the fileset id=files to a property name=files refid=files
and simply call java ...arg
--- Mike Cepek wrote:
Here's another example:
javadoc doctitle=SMSI Java API Reference
header=amp;copy; Copyright SMSI, 2000, 2001, 2002lt;brAll
Rights Reserved
Having to write:
property name=header1 value=amp;copy; Copyright SMSI, 2000, /
property name=header2
I would have done it as below if I really really really didn't want to write
long lines in build.xml ;-)
longproperty name=javadoc.header
valueamp;copy;/value
valueCopyright SMSI, 2000, 2002lt;brgt;/value
valueAll Rights Reserved/value
/longproperty
Ant abuses XML attributes
Is there a simple way to display the files that make up some fileset? I've
been playing around, initially trying to use apply with the DOS 'echo'
command, but have had problems. I seem to remember some oddity about
exec'ing winDOS commands (but have been too lazy to look it up :)
It would let
See fileset id=id/ with property name=xx refid=id/ and/or
pathconvert. --DD
-Original Message-
From: George McKinney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 6:04 PM
To: 'Ant user list'
Subject: Looking at a fileset?
Is there a simple way to display the files that make
--- Dominique Devienne [EMAIL PROTECTED] wrote:
I would have done it as below if I really really really didn't want to
write long lines in build.xml ;-)
longproperty name=javadoc.header
valueamp;copy;/value
valueCopyright SMSI, 2000, 2002lt;brgt;/value
valueAll Rights
Yes, it is like a circular dependency (and thus the hideousness of it all),
but this is due to the p2 package being a compiler, that turns XML into
Java. I am working on reducing this to a minimum, but unfortunately it's
how it was originally designed. I'm not happy about it, but at least I'm
Here is what I get:
C:\ant
C:\j2sdk1~1.0\bin\java -classpath
C:\APPLIC~1\ANT\ANT14\lib\JAXP.JAR;C:\APPLIC~1\ANT\ANT14\lib\CRIMSON.JAR;C:\APPLIC~1\ANT\ANT14\lib\ANT.JAR;;C:\PROGRA~1\RATI
ONAL\RUPBUI~1;C:\PROGRA~1\RATIONAL\COMMON\JAVA\SWINGALL.JAR;C:\PROGRA~1\RATIONAL
Hi,
I tried to run just start command using the exec task.
It does not work, however , all other batch scripts run just fine for me.
I am doing this in order to run the weblogic server , and get the control
back even as the server runs off the start window, so that I can run the
junit test
think you'll find that start is not an executable.
haven't tried it under ant but you should be able to achieve the same with
cmd.exe and the the args /C start
hth
steve
Viraj Purang wrote:
Hi,
I tried to run just start command using the exec task.
It does not work, however , all other
Does 1.4.1 not support the name attribute for the os tag?
...
BUILD FAILED
/u/build/acais/build.xml:6: Class org.apache.tools.ant.taskdefs.condition.Os
doesn't support the name attribute.
...
condition property=platform value=macosx
os name=Mac OS X /
/condition
- Original Message
Assuming I ever do get something like this to work ...
target name=init-platform
condition property=platform value=linux
os name=Linux /
/condition
condition property=platform value=macosx
os name=Mac OS X /
/condition
property file=${platform}.properties/
/target
Hi,
On Thu, 23 May 2002 16:51, Nicola Ken Barozzi wrote:
Peter Donald (have to use full name because this list is s full ;) ,
any hint on how to include a basic templating mechanism with current Ant? I
recall you favor templating, and I'm sure you can help us (I'm interested
too) and
--- G.L. Grobe [EMAIL PROTECTED] wrote:
Does 1.4.1 not support the name attribute for the os tag?
Nope -- just 'family'. But you can use the equals element instead,
comparing ${os.name} to the OS name you're checking for.
Diane
=
([EMAIL PROTECTED])
--- G.L. Grobe [EMAIL PROTECTED] wrote:
Should the scope of a property [...]
Properties in Ant don't really have scope -- once a property is set,
it's available throughout the project (it was set in).
Diane
=
([EMAIL PROTECTED])
__
Do You
1. Things like foreach are popping up frequently in the list of requests and are
(rightly imho) rejected by Ant designers. We have a conflict: the functionality is
needed but we don't want Ant to became a programming language.
2. It may possible to resolve this conflict. By 'programming'
If your doing testing (as opposed to launching for actual use), you
should try using the parallel task. Something like:
parallel
sequential
... start your process
/sequential
sequential
condition
... wait for the http server to come up - can't remember
88 matches
Mail list logo