Just came across this problem myself and came to the same conclusion i.e.
move it (destdir) to the end of the classpath.
Just to explain my situation.
We obfuscate our core source code and then compile the remaining code
against the obfuscated jar. But because the destination directory, where
--- Marc Logemann [EMAIL PROTECTED] wrote:
i need a possibility to do actions based on some output of a task.
For instance, i have the tomcat_list task (which prints out the
installed applications and their status) and want to stop a specific
application only if the application is allready
On Tue, 11 Jun 2002, Lokesh Shah [EMAIL PROTECTED] wrote:
What core tasks require ant to be runing using a jdk? I am sure
javac is one. Are there other which require a jdk?
Yes. From the top of my head, rmic and javah and probably
others. Basically all tasks that perform things
--- Marc Logemann [EMAIL PROTECTED] wrote:
its the ouput you get from the manager list command in tomcat. As you
know tomcat ships ant tasks and i use the List task, he is outputting
all applications row by row and its status behind the application name.
A few sample lines would be much more
--- Marc Logemann [EMAIL PROTECTED] wrote:
its the ouput you get from the manager list command in tomcat. As you
know tomcat ships ant tasks and i use the List task, he is outputting
all applications row by row and its status behind the application name.
A few sample lines would be much
On 11 Jun 2002, Stefan Bodewig [EMAIL PROTECTED] wrote:
We might decrease the logging level to verbose output only if the
classes are different but the class names are the same (i.e. the
tasks only differ in the classloader being used).
Supposed to be that way in the 1.5 branch, please try
Dear ALL
I tried to integrate ant1.4.1 with visual age for java 3.5.3. When I tried
to load an ant build file though VAJ , i am getting this error
Can't load default task list
Content of build file is as follows:
?xml version=1.0?
!--
I'm a little confused about the many options in the JUnit task. I'm
currently using
!-- Test the classes --
target name=test depends=compile
mkdir dir=${tmp}/
junit printsummary=on showoutput=yes
classpath path=${classes}/
batchtest todir=${tmp}
fileset dir=${src}
hello there
I was wondering if someone could help me with ant installation. It's
about the JAVA_HOME path. I am
using linux, Mandrake and I cannot find the path where java is
installed. Whenever I type ant, I get the error message:
ERROR: JAVA_HOME is not defined correctly.
The thing is I
set JAVA_HOME=/usr/bin and not /usr/bin/java
_
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
Rigas Parathyras [EMAIL
Thanx for that, but I 've tried it and didn't work
If I put JAVA_HOME=/usr/bin I get the error message
cannot execute or load usr/bin/bin
If I put JAVA_HOME=/usr I get the error message
couldn't find or load essential class java/lang/Object
set JAVA_HOME=/usr/bin and not /usr/bin/java
I am sorry, the JAVA_HOME should be set to /usr.. as the java
executables path will be resolved as $JAVA_HOME/bin/*.
_
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL
Check /usr/local directory, normally all the softwares that
are shared by users are put in this directory. If you do not find
java installation there, why do n't you download one there
and then set you path to that location, that will solve
all your problems. In my case it did.
usr/bin only
The JAVA_HOME depends on the JDK your have installed.
For example IBM SDK rpm install on /opt/IBMJava2-131,
so JAVA_HOME is /opt/IBMJava2-131.
Sun SDK install on /usr/java/jdk1.3.1 or /usr/java/j2sdk1.4.0_01
-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
Hello,
all running here pretty well!
But now we want to compile our technical architecture components first and
then all the other stuff.
Paths are like this:
/this/is/my/package/stuff
/this/is/my/package/morestuff
/this/is/my/package/ta
[..]
Okay, the fileset for the non ta
On Wed, 12 Jun 2002, Oliver Hertel [EMAIL PROTECTED]
wrote:
Okay, the fileset for the non ta components is:
fileset dir=${root.src} casesensitive=yes
include name=**/*.java/
exclude name=**/ta/*/
/fileset
What's the fileset for compiling only the ta comnponents?
But most likely, you could get away by using the jre just by having
tools.jar (1.2) from the jdk in the classpath. Ant bypasses the exe's to
call directly the java classes being these tools... --DD
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June
I've got the following:
path id=classpath.path
pathelement location=${classesDir}/
fileset dir=lib
include name=*.jar/
/fileset
/path
path id=test.classpath.path
path refid=classpath.path/
pathelement location=${testClassesDir}/
fileset dir=test/lib
include name=*.jar/
- Original Message -
From: Marc Logemann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 02:01
Subject: Re: parsing a task output for further processing
--- Marc Logemann [EMAIL PROTECTED] wrote:
its the ouput you get from the manager list command in tomcat.
Hello,
What's the fileset for compiling only the ta comnponents?
fileset dir=${root.src} casesensitive=yes
include name=**/ta/*/
/fileset
Okay, compiling less now: 2 of 400 files. I have more than one /ta/
directory ( /ui/ta/ and /bl/ta/ ) and I want to compile the content
The given example already works for several /ta/ directories. If ta can
contain subdirectories though (sub-packages), then change it to **/ta/**
--DD
-Original Message-
From: Hertel, Oliver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 9:26 AM
To: 'Ant Users List'
Subject:
--- Nitin_Baraskar [EMAIL PROTECTED] wrote:
I tried to integrate ant1.4.1 with visual age for java 3.5.3. When I
tried to load an ant build file though VAJ , i am getting this error
Can't load default task list
http://marc.theaimsgroup.com/?l=ant-userw=2r=1s=load+default+task+listq=b
The point is, i want to stop my app (maxbahr) only if it running, cause
otherwise i will get
a build error on the tcstop task.
sounds like a defect in the implementation of the tcstop task; it should
have an attr that states whether you care if it stopped or no'.
yeah, that also comes into
It works now. Don't know what I did to fix it. It may have been moving my
property tags out of the init target and into the top level.
Thanks for your debugging tips. I'm a new ant user and didn't find any
debugging tips in the 1.4.1 User Manual.
I'm no longer crazy.
-Original
--- Marc Logemann [EMAIL PROTECTED] wrote:
taskdef name=tclist
classname=org.apache.catalina.ant.ListTask/
target namefoo
tclist url=${catalina.url} username=${catalina.username}
password=${catalina.password}/
/target
If you're running Ant1.5, and assuming tclist has an option
If you're running Ant1.5, and assuming tclist has an option to write its
output to a file (which, if it doesn't, would definitely be bad, but I
suppose you could work around it in the meantime by bracketing your
tclist in a record):
property name=app value=maxbahr/
target name=stopApp
Hello,
could somebody please explain to me what is the precedence of
properties in a project:
+ set in build.xml
+ specified with -D at prompt
+ from the properties file
+ is there a difference between setting a property in the xml, or calling
.setProperty() from a script.
Thank You,
Agreed. Forexample, my JAVA_HOME for my RedHat Linux 7.2, using Sun JDK 1.3.1 is:
JAVA_HOME=/usr/local/jdk1.3.1
This is because I install all my tools and applications under the /usr/local directory
structure.
Simon
-
Simon P.
Hi, is there a list of all possible values for ${os.name} anywhere? I can't
see it
in the documentation unless I'm being blind.
Thanks
-Geoff
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The path I give for IBM/SUN SDKs are those
when you install JDK rpms
-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
-Original
On Wed, 12 Jun 2002, Edward Grinvald [EMAIL PROTECTED] wrote:
Hello, could somebody please explain to me what is the precedence of
properties in a project:
+ set in build.xml
+ specified with -D at prompt
-D wins over property.
The first property wins over a second one setting a
os.name is a Java system property convention an ANT convention. This is listed on the
Sun site
http://java.sun.com/docs/books/tutorial/essential/system/properties.html
As far as a long list of all the possible types, can't help you there.
Scott
-Original Message-
From: Geoff Meakin
Hi,
You can locate java (or any file) by the following command:
# find . -name java -print
If you installed an rpm file, you can try the following:
[root@bilbo root]# rpm -q -a|grep -i jdk
jdk-1.3.1_01-fcs
jdk-1.3.1_03-fcs
Well I seem to have both jdk1.3.1 version 01 and 03
Interestingly
I have been searching the archives for a solution to a common problem in my
ant scripts: the desire to parameterize an ant script through properties.
The fundamental limitation comes when trying to populate FileList-like or
FileSet-like things on a Windows platform with files pulled from
- Original Message -
From: Marc Logemann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 8:36 AM
Subject: Re: parsing a task output for further processing
If you're running Ant1.5, and assuming tclist has an option to write
its
output to a file (which, if it
A good solution is to use Ant 1.5's new selector capability. Unfortunately
there is not a selector to filter out read-only files built-in. But the
selector feature is extensible. I hope I'm not giving away the farm on our
upcoming Ant book, but I was going to add this to Ant 1.6 anyway. Here
Excellent. Thank you.
--
Tim Walker
Senior Software Engineer
[EMAIL PROTECTED]
Freshwater Software
303-443-2266 ex. 6505
Looking for Answers to your SiteScope or SiteSeer questions?
http://www.freshwater.com/support/search.htm
-Original Message-
From: Erik Hatcher [mailto:[EMAIL
This all looks ok to me. Does -debug yield any further details?
Are you compiling your task and using it in the same build? I don't think
thats relevant, just curious.
1.4.6?? What is that?
- Original Message -
From: Jonathan Corbin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Ant is allowing me to split my mungo project into lots of smaller (more
manageable) projects that can be built separately or in bulk. I am getting
lots of JAR files out as a result, but unfortunately that is causing my
classpath to grow long, too long for certain things that need to use it...
I
Ant is allowing me to split my mungo project into lots of
smaller (more
manageable) projects that can be built separately or in bulk.
I am getting
lots of JAR files out as a result, but unfortunately that is
causing my
classpath to grow long, too long for certain things that need
to
- Original Message -
From: Diane Holt [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 11:15 AM
Subject: Re: parsing a task output for further processing
--- Steve Loughran [EMAIL PROTECTED] wrote:
if you want to go this contrived route, grab
Hmmm...that didn't seem to work.
I installed 1.5:
Ant -version Apache Ant version 1.5Beta2 compiled on May 31 2002
When I added it to my build script, Forte For Java (using 1.4 still complained) that
nested selectors were
disallowed (getting FFJ to use the new Ant is my next challenge).
How can use copy/move to copy/move a file say template.xml to
BOMBAY_DEV.xml, a dynamically generated filename,
where BOMBAY and DEV are two properties defines in env.properties file
(say two properties dev.hostname and dev.realm) ?
Thanks.
Navjeet S. Chabbewal
Dimension Data
--
To
As simple as copy file=template.xml tofile=BOMBAY_DEV.xml /.
Read the manual would help with this kind of questions ;-) --DD
-Original Message-
From: Chabbewal, Navjeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:20 PM
To: [EMAIL PROTECTED]
Subject: how to copy/move a
Which of course, if properties are used, becomes:
copy file=${file2copy} tofile=${copydestination} /
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:28 PM
To: 'Ant Users List'
Subject: RE: how to copy/move a file to dynamically
You mean copy file=template.xml tofile=${dev.hostname}_${dev.realm}.xml
/
- Alexey Solofnenko.
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 2:28 PM
To: 'Ant Users List'
Subject: RE: how to copy/move a file to dynamically generated
Yeah, something like that ;-) --DD
-Original Message-
From: Alexey Solofnenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:30 PM
To: 'Ant Users List'
Subject: RE: how to copy/move a file to dynamically generated file name
You mean copy file=template.xml
Hi,
I wrote a custom task that will perform some common tasks in our development
environment. It is suppose to work like this:
taskdef name=createdatabase classname=MyAntTask
classpath
path location=c:/myanttask/build/
/classpath
/taskdef
target name=test
createdatabase
I reversed my Boolean logic and now it's working great. Thanks !
--
Tim Walker
Senior Software Engineer
[EMAIL PROTECTED]
Freshwater Software
303-443-2266 ex. 6505
Looking for Answers to your SiteScope or SiteSeer questions?
http://www.freshwater.com/support/search.htm
-Original
Have you tried?
taskdef name=createdatabase classname=MyAntTask
classpath
path location=c:/myanttask/build/
fileset dir=c:/pathtomyclasses/lib
include name=**/*.jar/
/fileset
/classpath
/taskdef
There are issues about using classpath inside taskdef (I
Alexey,
I forgot to mention one thing, the environment name used in properties
file (dev in this case) is passed in to ant as -D property deployEnv. So
I tried ${${deployEnv}.hostname}_${${deployEnv}.realm}.xml but that does
not seem to work.
--Navjeet
-Original Message-
From:
Hi! I want to be able to invoke 'ant -DDEBUG=1' whenever I want my
project to be compiled with javac's -g flag. How do I write the build
file for this? One klunky way would be something like
target name=compile unless=DEBUG
javac debug=off/
/target
target name=compilewithdebug
I think the recommended way is to create separate property files, then:
property file=${deployEnv}.property prefix=env/
copy file=template.xml tofile=${env.hostname}_${env.realm}.xml/
- Alexey.
-Original Message-
From: Chabbewal, Navjeet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June
Or if you want to keep everything in the build.xml (you must have a finite
number of deployEnv values):
target name=copy
depends=set-properties /
copy file=template.xml
tofile=${hostname}_${realm}.xml /
/target
target name=set-properties
depends=select-deployEnv,
I know the real problem is probably elsewhere, but is there
any simple way (via Ant) to bundle these JARs back into one big
JAR?
You could build a new jar file with all the others listed as
zipfilesets.
I presume you were referring to something like this.
You're bound to get a flood of replies to this:
property name=build.debug value=true/
javac debug=${build.debug}
then run with: ant -Dbuild.debug=false to turn it off.
So yes, there is a vastly better way!
Erik
- Original Message -
From: [EMAIL PROTECTED]
To: Ant Users List
Hi,
Does anybody know of any task (preferably compatible with ant 1.4.1) that
can split a 300Mb zip file into 10Mb or 100Mb chunks that can be pieced
together after download. The jar and zip tasks don't seem to have the
ability.
Thanks
Donal
--
To unsubscribe, e-mail: mailto:[EMAIL
-Original Message-
From: ajack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:25 PM
To: 'Ant Users List'
Subject: RE: Combining JARs into one JAR
I know the real problem is probably elsewhere, but is there
any simple way (via Ant) to bundle these
- Original Message -
From: Tim Walker [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 2:43 PM
Subject: RE: Delete and File Properties
I reversed my Boolean logic and now it's working great. Thanks !
what? you reversed the defintions of true and
I appreciate your helpful reply.
Um, OK I don't know XSL but I would think someone could provide a simple example to
get me started...
If I could see how to access a jvm property from inside the junit-noframes.xsl file
then I'd be good to go.
John
-Original Message-
From: Erik
--- Chabbewal, Navjeet [EMAIL PROTECTED] wrote:
I forgot to mention one thing, the environment name used in properties
file (dev in this case) is passed in to ant as -D property deployEnv. So
I tried ${${deployEnv}.hostname}_${${deployEnv}.realm}.xml but that does
not seem to work.
The
--- [EMAIL PROTECTED] wrote:
Once I have the FileSet I want, I can convert it to a Path easily
enough, but I can't start with a string path of absolute filenames
(perfect for a property file) and convert it to a FileSet.
True -- but you can lop off the leading dir part, using a nested map
On Wed, 12 Jun 2002, Erik Hatcher [EMAIL PROTECTED]
wrote:
public class ReadOnlySelector extends BaseExtendSelector {
shouldn't that better be a built-in selector?
Maybe an extended version of it which also checks canRead, a selector
that lets me select all writable, all read-only or all
63 matches
Mail list logo