Hello. I am trying to get the Ant fileproperties task to work, but I keep
getting the error Could not create task or type of type: propertyfile. Ant
could not find the task or a class this task relies upon. I know it's
something wrong with my classpath, but can't figure it out. Here's my
Here's my configuration:
JDK 1.5.0_07 installed to /usr/local/jdk1.5.0_07
Ant 1.6.5 installed to usr/local/apache-ant-1.6.5
$ANT_HOME=/usr/local/apache-ant-1.6.5
$JAVA_HOME=/usr/local/jdk1.5.0_07
$PATH=[...]:/usr/local/apache-ant-1.6.5/bin:/usr/local/jdk1.5.0_07/bin
seems to be ok
build.xml:
Back in June 2004 there was a thread briefly discussing the problem of
native libraries having dependencies on further native libraries and the
apparent lack of support in ANT to modify Path or LD_LIBRARY_PATH as
appropriate. I am facing the problem (which I explain in more detail below)
and I
All,
I am using ant 1.6.5 with the following command line on Windows XP Pro:
call %ANT_HOME%\bin\ant -quiet -noclasspath -nouserlib ^
-lib tools\xdoclet-1.2.3\lib ^
-lib tools\hibernate-3.1 -lib tools\hibernate-3.1\lib ^
-lib lib\ext\j2ee-1.3 -lib libtest\junit3.8.2 -lib tools\bcel-5.2
and
Hi all,
i am using Tomcat 5.0.28 and ant 1.6.5. I have an application that needs
it`s own configuration (conf/Catalina/localhost).
Now, i would like to deploy it with ant, but when using the deploy task,
an undeploy is called, and i have the problem, that the configuration
file is being
Hi,
anyone using the maverick ant task for ssh and starting a script with
exec ?
http://www.sshtools.com/showMaverickAntTask.do
For sftp stuff maverick is great - recommended !!, but for exec ...
I would like to use maverick for starting a ksh script on the
remote machine, but the exec
Good Morning Gary-
This is my understanding for ensuring classpath is updated for taskdef
Taskdef CLASSPATH
if no CLASSPATH available acquire from
Target classpath
if no CLASSPATH available acquire from
Project classpath (build.xml) CLASSPATH variable
if no CLASSPATH available acquire
For completeness, I am using:
Apache Ant version 1.6.5 compiled on June 2 2005
java version 1.5.0_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)
On 14/06/06, Juan Jimenez [EMAIL PROTECTED] wrote:
Back in
Good Afternoon Martin,
I'm not sure what version of Ant you are referring to because the newer
versions (1.6+)
have the -lib command line option to add to the classpath (See
http://ant.apache.org/manual/running.html)
As I said below my build script works fine when any of the output
options
[EMAIL PROTECTED] wrote:
hi,
we are trying to access serena dimentions 9.1 with Ant script but we are
facing problem, plz help us.
plz check following ant code and problem description.
project name=AntSampleTest default=getlatest basedir=.
target name=getlatest
Carpentier, Nelson wrote:
Hi All,
I've signed on to bring a solution.
I've been dealing with the following error message for quite some time
when running junitreport:
D:\somedir\build.xml:206: Could not find a valid processor version
implementation from
Rob, my linux has this sctructure
/usr/repository/branches/R1
/R2
/Rx
Branches alredy exists
If I try to add branches
cvs command=add branches/
cvs [add aborted]: there is a version in branches already
And if I try to add my
Juan Jimenez wrote:
Back in June 2004 there was a thread briefly discussing the problem of
native libraries having dependencies on further native libraries and the
apparent lack of support in ANT to modify Path or LD_LIBRARY_PATH as
appropriate. I am facing the problem (which I explain in more
Can you expand a bit on the fact that you could not get Maven to work for you.
Remember this was a long time ago, before Maven v1 was fully mature.
I had trouble making it work on a simple project, and didn't get much
help from the mailing list. So I quickly gave up for the short term,
while
Presumably you are running junit forked? I think you also need to make
sure that your path and library search path includes the existing env
variables.
Mostly likely not. The only right solution is to junit fork=true.
Am I going to be forced to look into a nominated directory and preload
Ok. Now I tried
cvs dest=${branch.path} command=import -m 'Initial
Commit' branches/${version.name} myuser start/
It start adding creating a branch ( I don't want that.. But..)
And blowup
[cvs] cvs import: Importing
Thanks for the quick reply! I'm using the official binary, downloaded
yesterday.
ant -version
Apache Ant version 1.6.5 compiled on May 3 2006
The ant-nodeps.jar does contain a PropertyFile.class and its manifest.mf
says its name is org/apache/tools/ant/taskdefs/optional
I tried an empty
There is no way you can set up a classpath and use taskdef to pull
them in in their own classloader is there?
Creating that weblogic-specific classpath and using it in the taskdef
is how I get servicegen to be a valid task... Yet when the task is
running, it still freaks out if there's no
Thank you for taking an interest.
Our tests have always been forked and I do want to avoid hacks, which is why
I am coming to this forum.
This is what I have so far ( lib.package contains all shared objects ):
property name=junit.lib.path value=${java.library.path}${path.separator
Hello,
What people could try is to
1) keep weblogic.jar in $ANT_HOME/lib
2) but castrate the file by removing the META-INF/SERVICES entries in the jar
file which specify the JAXP transformation engine, so that you fall back to the
default JDK transformation engine.
I did not have to try it
Hello Dexter,
can you check what is the output of
$ which ant
are you really using the ant distribution that you want to use ?
if you are really using ant 1.6.5, can you try it in combination with JDK 1.4
for instance ?
the error message which you get can mean two things :
- the class
Also make sure that /etc/ant.conf does not exist.
If it does, this file will point to the jpackage version of ant.
Peter
On 6/14/06, Antoine Levy-Lambert [EMAIL PROTECTED] wrote:
Hello Dexter,
can you check what is the output of
$ which ant
are you really using the ant distribution that
Carpentier, Nelson wrote:
There is no way you can set up a classpath and use taskdef to pull
them in in their own classloader is there?
Creating that weblogic-specific classpath and using it in the taskdef
is how I get servicegen to be a valid task... Yet when the task is
running, it still
Hello Gary,
what you are describing sounds like a bug.
the question is where does the bug happen.
A possible candidate would be ant.bat.
I suspect that the -noclasspath option is not executed reliably depending upon
-quiet comes before -noclasspath or not.
-noclasspath is a command line
Our tests have always been forked and I do want to avoid hacks, which is why
I am coming to this forum.
Cool.
!-- we now reset java.library.path to something specific to this project --
sysproperty key=java.library.path path=${junit.lib.path}/
This is enough for the libraries directly
I am trying to set my ant system property file.encoding to UTF-8.
Currently it is set to Cp1252, which I think is the Windows default.
How can I modify the ant system property file.encoding?
-Jed
Nobody works with ant cvs ?
I just want to add a fresh project to cvs.
Tks
-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 9:34 AM
To: Ant Users List
Subject: RE: cvs add
Ok. Now I tried
cvs dest=${branch.path}
This sort of one time thing is better done using a CVS client, not Ant.
The error you were showing was not an Ant error, but a CVS error.
Do this with command line CVS, no? --DD
On 6/14/06, Asensio, Rodrigo [EMAIL PROTECTED] wrote:
Nobody works with ant cvs ?
I just want to add a fresh
I do not know why people are so fond of cvsCo tasks. They are
[usually] just wrappers over native command executors. In most cases a
simple exec should be sufficient. I think your case qualifies as one.
Do not forget to set correct execution directory. For example:
exec executable=cvs
On 6/14/06, Alexey N. Solofnenko [EMAIL PROTECTED] wrote:
I do not know why people are so fond of cvsCo tasks. They are
[usually] just wrappers over native command executors. In most cases a
simple exec should be sufficient.
Yep, I agree with Alexey.
I was doing an exec failonerror=true for
Sure that is a cvs error, but it comes from a ant attributes
combination.
Im staring trying cvs command line.
Thanks.
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 11:57 AM
To: Ant Users List
Subject: Re: cvs add
This sort of one
Yes, maybe this qualifies for a cmd task.
I will try in this way.
Thanks.
-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 11:59 AM
To: Ant Users List
Subject: Re: cvs add
I do not know why people are so fond of cvsCo tasks. They
Thanks guys.
Very useful
I will post here my complete code when I finish.
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 12:02 PM
To: Ant Users List
Subject: Re: cvs add
On 6/14/06, Alexey N. Solofnenko [EMAIL PROTECTED] wrote:
I
Hi, I'm having trouble using an ant task to run a Java app that uses
RMI. I've constructed a Java task to run it, but it fails with a
java.security.AccessControlException as soon as it starts the RMI
section. However, when I take a look at the output of ant -verbose and
reconstruct the java
Anyone know of a way in which to do numeric comparisons? For instance
something like:
if a b
Certainly one can compare for equality in terms of strings...but I
didn't notice anything that would allow me to do some form of comparison
Thanks!
Scot
--
Scot P. Floess
27 Lake Royale
On 6/14/06, Scot P. Floess [EMAIL PROTECTED] wrote:
Anyone know of a way in which to do numeric comparisons? For instance
something like:
if a b
Ant-Contrib's math?
I'd use a script myself. Not everything should be a task IMHO. --DD
Hi,
I think file.encoding is not an ant system property, rather a java property.
Try
ant -Dfile.encoding=UTF-8
or
set ANT_OPTS=-Dfile.encoding=UTF-8
ant
Regards,
Antoine
Original-Nachricht
Datum: Wed, 14 Jun 2006 11:07:57 -0400
Von: 1800 tbsfunny [EMAIL PROTECTED]
An: Ant
Depending on what you are comparing numbers of, there
might be other suggestions. It would be trivial to
write a task to do this... and such a task could use
Ant's existing oata.types.Comparison
EnumeratedAttribute. :)
-Matt
--- Scot P. Floess [EMAIL PROTECTED] wrote:
Anyone know of a way in
Here is the code to import into a custom module into cvs with a ANT
task.
Thanks
You have to have CVSROOT into your env variables before this.
target name=commit
exec executable=cvs dir=${branch.path}
failonerror=true
arg line=import -m
yes..in the meanwhile..if you want to set your sticky flag ..you can use this..
exec executable=cvs.exe
arg line=update -r1.78 SourceFile.java/
/exec
HTH,
Martin --
*
This email message and any files transmitted with it
You can put CVSROOT as -d option instead of using environment variable.
- Alexey.
Asensio, Rodrigo wrote:
Here is the code to import into a custom module into cvs with a ANT
task.
Thanks
You have to have CVSROOT into your env variables before this.
target name=commit
Is there a simple way to count lines of text in a property/file? Not
lines of source code or anything, just raw lines of text, like wc
-l. I mean, I could probably do something with line terminators, but
I'd rather have something that knows how to count lines properly on
multiple platforms.
--
Aaron-
grep is your friend
grep -c '^' FileName
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you
On 6/14/06, Martin Gainty [EMAIL PROTECTED] wrote:
Aaron Davies wrote:
Is there a simple way to count lines of text in a property/file? Not
lines of source code or anything, just raw lines of text, like wc
-l. I mean, I could probably do something with line terminators, but
I'd rather have
Nothing unless you want to go to antcontrib (I passed on that and wrote
a linecounter myself).
-Original Message-
From: Aaron Davies [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 4:14 PM
To: Ant Users List; Martin Gainty
Subject: Re: Count Lines of Text?
On 6/14/06, Martin
I've got no problems with ant-contrib; I'm already using several of
their tasks. Do they have something to do this? I didn't see one.
On 6/14/06, EJ Ciramella [EMAIL PROTECTED] wrote:
Nothing unless you want to go to antcontrib (I passed on that and wrote
a linecounter myself).
-Original
I came up with a solution using math - I just didn't want to be too
hasty in using that solution assuming I overlooked something. The
math solution was very trivial ;)
Thanks :)
Scot
Dominique Devienne wrote:
On 6/14/06, Scot P. Floess [EMAIL PROTECTED] wrote:
Anyone know of a way in
Makes sense. I was just wanted to make sure there wasn't a built-in
ant/ant-contrib solution to do this...
Thanks :)
Scot
Matt Benson wrote:
Depending on what you are comparing numbers of, there
might be other suggestions. It would be trivial to
write a task to do this... and such a task
I found some interesting reading here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4280189
http://forum.java.sun.com/thread.jspa?threadID=707176
However, since my script will not work without the sysproperty, one of the
following must be true:
a) the described behaviour of
Aha. although 'which ant' returns the right version of ant, there is an
/etc/ant.conf. Removing it fixed the problem! Thanks to Jan, Antoine, and
Peter for the help!
--
View this message in context:
http://www.nabble.com/ant-fileproperties-task-classpath-problem-t1784395.html#a4877149
Sent
50 matches
Mail list logo