Hi all.
I'm trying to write a generic build file that uses a properties file to
inform the generic build file of which subprojects to build.
So, the build.xml loads a build.properties which has a property buildorder
which is a list of subprojects in that directory to build, and this order
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 fro
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 java.library.p
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 co
I came up with a solution using - I just didn't want to be too
hasty in using that solution assuming I overlooked something. The
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 which to do
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
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 G
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 rath
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 h
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.
--
A
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.
yes..in the meanwhile..if you want to set your sticky flag ..you can use this..
HTH,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom
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.
-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTE
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 wa
Hi,
I think file.encoding is not an ant system property, rather a java property.
Try
ant -D"file.encoding=UTF-8"
or
set ANT_OPTS=-D"file.encoding=UTF-8"
ant
Regards,
Antoine
Original-Nachricht
Datum: Wed, 14 Jun 2006 11:07:57 -0400
Von: 1800 tbsfunny <[EMAIL PROTECTED]>
An:
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 ?
I'd use a
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
Loui
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 comman
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
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 &Co tasks. They are
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 t
On 6/14/06, Alexey N. Solofnenko <[EMAIL PROTECTED]> wrote:
I do not know why people are so fond of &Co tasks. They are
[usually] just wrappers over native command executors. In most cases a
simple should be sufficient.
Yep, I agree with Alexey.
I was doing an for my cvs update. --DD
--
I do not know why people are so fond of &Co tasks. They are
[usually] just wrappers over native command executors. In most cases a
simple should be sufficient. I think your case qualifies as one.
Do not forget to set correct execution directory. For example:
- Alexey.
Asensio, Rodrigo
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 proj
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
It start adding creating a
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
Our tests have always been forked and I do want to avoid hacks, which is why
I am coming to this forum.
Cool.
This is enough for the libraries directly loaded by System.loadLibrary,
but not for their dependencies.
PATH or Path has to be used on Windows. That's the equivalent
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 optio
Carpentier, Nelson wrote:
There is no way you can set up a classpath and use to pull
them in in their own classloader is there?
Creating that weblogic-specific classpath and using it in the
is how I get "" to be a valid task... Yet when the task is
running, it still freaks out if there's no
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
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 which
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
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 ):
> There is no way you can set up a classpath and use to pull
them in in their own classloader is there?
Creating that weblogic-specific classpath and using it in the
is how I get "" to be a valid task... Yet when the task is
running, it still freaks out if there's no weblogic JARs in the
ANT\li
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 CLASS
Ok. Now I tried
It start adding creating a branch ( I don't want that.. But..)
And blowup
[cvs] cvs import: Importing
/usr/repository/branches/R20060613-MCS/webapp/MCS/update/images
[cvs] cvs: import.c:595: process_import_file: Assertion
`entdata->options[0] == '-'
Presumably you are running 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 .
> Am I going to be forced to look into a nominated directory and preload
> anything that match
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 ke
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 d
Rob, my linux has this sctructure
/usr/repository/branches/R1
/R2
/Rx
Branches alredy exists
If I try to add branches
cvs [add aborted]: there is a version in branches already
And if I try to add my subdirectory
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 :
D:\somedir\build.xml:206: Could not find a valid processor version
implementation from weblogic.xml.jaxp.RegistrySAXTransformerFactory
Thi
[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.
pvcsproject="/Payroll/ITEM_LIB" />
Result:
BUILD FAILED
C:
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 (-debu
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
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 fro
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 betwee
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 del
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 my
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 am
>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
>buil
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
configu
51 matches
Mail list logo