; org.apache.tools.ant.Main This is because
jars have versions in them that change and this is supposed to be in a nightly
script.
On Wed, Feb 9, 2011 at 1:21 PM, Mikael Petterson
wrote:
> Hi,
>
> Why not try:
>
> java %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar&
the jars in a directory in the
classpath. I don't care if I run ant Launcher or Main class.
java -cp "D:\Software\webtest\lib\*" org.apache.tools.ant.Main This is because
jars have versions in them that change and this is supposed to be in a nightly
script.
On Wed, Feb 9,
Hi,
Why not try:
java %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar"
"-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp
"%CLASSPATH%" %ANT_CMD_LINE_ARGS%
-Original Message-
From: Gabriel Petrovay [mailto:gabipetro...@gmail.com]
Sent: den 9 februari 2
Hi,
When I run I need to run my tests in order. Shall I use the -tag?
br,
//mikael
=
Ericsson AB
Mikael Petterson
Software Designer
Mobile: +46-(0)70-2673044
Email: mikael.petter...@ericsson.com
=
new directory structure so that my directory structure
would be:
src/se/company/xvf/prod/MyFile.java
src/se/company/xvf/prod/AnotherFile.java
br,
//mike
=
Ericsson AB
Mikael Petterson
Software Designer
Mobile: +46-(0)70-2673044
Email: mikael.petter
Hi,
How can I set the value of out.dir to /local/tmp/ if it exists.
Currently the second option when /tmp exists set the value out.dir to
/tmp/myuser
I know that /local/tmp exists.
//mike
Mikael Petterson
Software Designer
Ericsson AB, Stockholm, Sweden
/local/test.
If none of these directories exist I will set "local" to current
directory.
Any ideas how I can do this in ant 1.6.5
//mike
Mikael Petterson
Software Designer
Ericsson AB, Stockholm, Sweden
Visiting address: Torshamnsgatan 42, Kista
Phone: +46 70 2673044
E-mail: mikael.petter...@ericsson.com
et in javac
Mikael Petterson wrote:
> Where do I add this to my javac target to make sure that no other
> files in my src tree is compiled.
Try to add it to "sourcepathref" parameter of the javac task.
Regards,
Ognjen
--
)?
Br,
//mike
Mikael Petterson
Software Designer
Ericsson AB, Stockholm, Sweden
Visiting address: Torshamnsgatan 42, Kista
Phone: +46 70 2673044
E-mail: mikael.petter...@ericsson.com
Hi,
I used 1.5 but got the same NullPointerException. Since I don't get it
in eclipse it is hard to debug.
I am thinking of using Netbeans to debug an instance of Ant.
Any other ideas on how to approach?
Cheers,
//mikael
-Original Message-
From: Mikael Petterson (KI/EAB) [m
em on your system classpath?
-Original Message-----
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 9:57 AM
To: Ant Users List
Subject: RE: Junit test fails in ant but not in Eclipse
Hi,
Thanks for reply.
When I ran in Eclipse I did use "run as jun
e?
-Original Message-
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 5:57 AM
To: user@ant.apache.org
Subject: Junit test fails in ant but not in Eclipse
Hi,
I run a junit test ( junit 3.8.1 in both) in Eclipse it works just fin
Hi,
I run a junit test ( junit 3.8.1 in both) in Eclipse it works just fine.
Then I run the test in Ant using:
The test fails with an NullPointerException.
on and you'll get the command which is used for
.
Jan
>-----Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 23. Februar 2007 09:08
>An: user@ant.apache.org
>Betreff: empty string is interpreted as arg to java progra
Hi,
In my ant build file I have to check if a streamer.jar ( my project
depends on streamer.jar ) contains the latest of classes. If not I have
to update the jar file.
How can I do that in ant. I have acess to source for streamer too.
All hints are very much welcome!
Cheers,
//mikael
Hi,
I need to exclude specific file names since these are clearcase elements
and cannot ( should not ) be removed. I don't want the error message to
show so I thought excluding them from the fileset would do it.
Hi,
Is this the way to exclude the a list of files ( I have more names that
I need to exclude)? Shall I use ';' or the regular ',' ?
Cheers,
//mikael
Hi,
I would like to confirm with you experts if I can write ( as below) to
delete some files if an
error log exist. Or is there a better way?
Cheers,
//mikael
[mailto:[EMAIL PROTECTED]
Sent: den 8 juni 2006 13:02
To: Ant Users List
Subject: Re: Print exact version of jvm (java -version)
For versions of JDK prior to 1.5... I just executed javac -version
using JDK 1.5...
Mikael Petterson (KI/EAB) wrote:
> By the way there is no javac -version :-)
-
From: Scot P. Floess [mailto:[EMAIL PROTECTED]
Sent: den 8 juni 2006 13:02
To: Ant Users List
Subject: Re: Print exact version of jvm (java -version)
For versions of JDK prior to 1.5... I just executed javac -version
using JDK 1.5...
Mikael Petterson (KI/EAB) wrote:
> By the way there is
By the way there is no javac -version :-) but java -version.
Cheers,
//mikael
-Original Message-
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: den 8 juni 2006 10:02
To: Ant Users List
Subject: RE: Print exact version of jvm (java -version)
I wonder if there is an
, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]>
wrote:
> How can I print what compiler is used ( exact version like 'java
> -version') when compiling?
>
> Cheers,
>
> //mikael
>
>
> BUILD.TARGET.VM=1.3
> BUILD.BOOTCLASSPATH=/app/j2sdk/1.3.1_11/jr
I wonder if there is an attribute to the javac task.
Cheers,
//mikael
-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
Sent: den 8 juni 2006 10:00
To: Ant Users List
Subject: Re: Print exact version of jvm (java -version)
On 08/06/06, Mikael Petterson (KI/EAB
How can I print what compiler is used ( exact version like 'java
-version') when compiling?
Cheers,
//mikael
BUILD.TARGET.VM=1.3
BUILD.BOOTCLASSPATH=/app/j2sdk/1.3.1_11/jre/lib/rt.jar
Hi,
I have a property that checks if a certain directory exists. If that
property, gen.dir.present, is true then
I need to set a bunch of properties. If false I set them to other
values. Is there a
Smooth way to do this.
Cheers,
//mikael
Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 11. Mai 2006 07:34
>An: user@ant.apache.org
>Betreff: Add html tags in a text file
>
>Hi,
>
>I have a plain text file. I need to insert at the very beginning
>of th
Hi,
I have a plain text file. I need to insert at the very beginning
of the file and at the very end (). And then change the file
extension.
I shell script I could use something like:
cat $1 | sed "s/^//g" | \
sed "s/$/<\/html>/g" >$1.html
Is there a similar function in ant?
Hi,
Will the value of 'xsl.file' always be interface.xsl?
Also does the value of matter since 'xml.file' in
has the value.
cheers,
//mikael
herited this role as some core project
people
left before i joined the company. I did have the ANT_OPS setting but
that
was not working..I will try your suggestings today.
>
> From: "Mikael Petterson (KI/EAB)" <[EMAIL PROTECTED]>
> Date: 2005/12/07 Wed AM 01:35:27 EST
Hi,
I am using the following lines for testing:
How can I make my build to 'BUILD FAILED' and still execute the targets after
test:test since it is part of
Yepp that worked! Thanks!
Cheers,
//mikael
-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED]
Sent: den 21 november 2005 19:04
To: Ant Users List
Subject: RE: trying to grep in file for a certain string
Oops, wrap the with a
--- "Mikael Petterson (KI/EAB)&quo
d sweet,
Ninju
--- "Mikael Petterson (KI/EAB)" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to check if a file called TestSummary.txt does NOT contains the
> string "Number of failures = 0".
> If it does not contain "Number of failures = 0" then
Hi,
I am trying to check if a file called TestSummary.txt does NOT contains the
string "Number of failures = 0".
If it does not contain "Number of failures = 0" then I need to set a property
called test.status.failed.
When I try to test the ant script below I get:
type doesn't support the nes
possible to get hostname in ant?
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Is is possible to remove the spaces in the string ( see generation below)
2005-10-26 02:31:41:0396 PM -> 2005-10-2602:31:41:0396PM
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
we are running some junit (3.8.1) tests with ant (1.6.2) and after a while when
running the tests we get the following error (see below).
we are using sun's jdk 1.4.2_04.
Any ideas what this might be?
cheers,
//mikael
The ' characters around the executable and arguments are
not part of t
Hi,
Is it possible to generate a unique id for an attribute in ant?
Id can consist of numbers and characters.
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I am trying:
but still no match.
This is the line:
cheers,
//mikael
-Original Message-
From: Jakob Fix [mailto:[EMAIL PROTECTED]
Sent: den 20 oktober 2005 16:21
To: Ant Users List
Subject: Re:
On 20/10/05, Greg Winton <[EMAIL PROTECTED]> wrote:
> Mikael,
>
>
Launcher.main(Launcher.java:55)
//mikael
-Original Message-
From: Jakob Fix [mailto:[EMAIL PROTECTED]
Sent: den 20 oktober 2005 15:32
To: Ant Users List
Subject: Re:
Mikael,
On 20/10/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I tried the following;
&g
Hi,
I tried the following;
but the " seems to mess up the match.
This is the line:
cheers,
//mikael
-Original Message-
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: den 20 oktober 2005 14:29
To: Ant Users List
Subject: RE:
Hi,
I need to replace "
Users List
Subject: Re:
from Ant Contrib ?
Otherwise, could you be more specific ?
Mikael Petterson (KI/EAB) wrote:
> VALUE = "R11A02">
>
>How can I replace the R11A02 with a new number?
>
>cheers,
>
>//mikael
>
>---
How can I replace the R11A02 with a new number?
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
How can I get the current directory in ant ( like unix pwd)?
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
>-Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 18. Oktober 2005 12:50
>An: user@ant.apache.org
>Betreff: set property values using my own task
>
>Hi,
>
>The purose of my task is to set the values for properties
Hi,
The purose of my task is to set the values for properties arch, product_number
and product_revision.
The information is stored in a file called 'product.attributes'. I need to
assign the properties the values ( line two)
in the product.attributes file and then use the property values in targ
first line to get the
meta data
and parses the second line for the data. After that it stores the values.
Jan
>-Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. Oktober 2005 10:38
jars havent any version
info inside.
But just install the versions described in the lib-dependency in the Ant manual.
Jan
>-Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. Oktober 2005 12:17
>An: Ant Users List
>Be
>-Ursprüngliche Nachricht-
>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. Oktober 2005 10:38
>An: user@ant.apache.org
>Betreff: make properites of data in file
>
>Hi,
>
>I have the following properties
Hi,
I have the following properties in my build.xml:
In a file called product.attribues I have the following information:
TARGET:PRODUCT_NUMBER:PRODUCT_REVISION
jvm:CXC1327714/22:R1A01
Is it possible to assign ant properties with the values in
my files?
cheers,
//mikael
---
Hi,
I found that there is a for javancss.
But I have not found that there is a way to filter out packages. Only files.
Is it possible to filter java packages?
cheers,
//mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi,
I want to exclude a package, common, in my java application and then execute
javancss
from ant.
How can I exclude the common package in my source tree and then run my javancss.
This is my build.xml (see below).
cheers,
//mikael
build.xml
===
Hi,
we have a couple of junit tests that have 'oder' dependecy like, first
CreateHwTest must be executed and then RecoverHwTest.
Is it possible to set the order which the junit tests must be executed in?
cheers,
//mikael
-
To
Hi,
I am using 'exec' -task to execute a shell script. However it seems like it
cannot find the shell script file. I ( and other people) have checked and the
file is there. I wonder if anyone had a similar problem in 1.6.2?
//mikael
This is part of my build.xml
===
Hi,
I have had this problem before but increasing Xms and Xmx solved it (ANT_OPTS).
However now it does not.
I have tests that is being run. No problem! I also create a coverage report
with emma. But when I get to the junitreport-task I get a
java.lang.OutOfMemoryError.
I am using ant 1.6.2,
Hi,
We make use of 'suite()' in junit. Does junit target in ant make a distinction
between tests run in a suite and each separate test. Or can a test be run
twice? It seems like it will become a heavy load on my memory ;-)
I am wondering this cause I get a java.lang.OutOfMemoryError.
I have se
Hi,
In our product 'boz' we have a library, libx.jar' that we are dependent of.
When I build our product I want to check that we have the latest version of
libx.jar when we complie our product 'boz'.
Any hints on how to do this most effeciently ( not making my build too slow).
Cheers,
//Mikae
Thanks Stefan,
It worked just fine!
//Mikael
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
Sent: den 28 april 2005 10:53
To: user@ant.apache.org
Subject: Re: check property
On Thu, 28 Apr 2005, Mikael Petterson <[EMAIL PROTECTED]>
wrote:
> In my ant bu
Hi,
In my ant build.xml I have a property called:
This can be changed when I run my build.xml ( from -Dxml.file) when starting
ant.
How can I check the value of 'xsl.file' and depending on the value give
another poperty ('pkg') a value
like:
if xsl.file = interface.xsl --> pkg = /se/comp
-memory problems processing
junit-frames.xsl in Ant 1.6 but I have not yet had time to investigate and
increasing memory seemed to make it go away.
Hope this helps
Donald.
-Original Message-
From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 6 April 2005 11:54 PM
To
Hi,
Thanks for reply.
I will file a bug report since there are no constraints specified concering
size of files in the
task. How is the implemented?
I recall you saying that it uses a DOM tree. What is the reason for using a dom
tree? Is it possible to add an attribute to that
selects SAX
the results
here it requires lots of memory.
Could you try to generate your test results with
format="noframes"
Ivan
--- "Mikael Petterson (KI/EAB)"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have tried this option without any luck.
>
> ANT_OPTS="-Xms
)
Caused by: java.lang.OutOfMemoryError
--- Nested Exception ---
java.lang.OutOfMemoryError
Total time: 34 seconds
-Original Message-
From: Ivan Ivanov [mailto:[EMAIL PROTECTED]
Sent: den 6 april 2005 14:02
To: Ant Users List
Subject: RE: junitreport problem
Mikael,
one way to m
: junitreport problem
Mikael,
I suppose that it is neither ant nor junit problem.
Actually, does some XSLT tarnsformation
on test results xml files and if you have many test
results, it is likely that the transformation runs out
of memory.
HTH Ivan
--- "Mikael Petterson (KI/EAB)"
<[EM
Hi,
When I run the in my build and test sequence I get a
java.lang.OutOfMemoryError.
Is the implementation of this in ant or in junit? I want to find out which part
is causing the error.
//Mikael
-
To unsubscribe, e-mail: [EM
Hi,
What is a reasonable size on my Xmx Xms in ANT_OPTS.
I have 1.600 source files.
//Mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I am using ant for build and test our java application. We run into
'java.lang.OutOfMemory' problems when running junit tests.
I have made a number of changes without any luck:
- Unset classpath
- increase ANT Xms and Xmx via ANT_OPTS env. variable.
- Using fork in javac.
- Increase Xmx in j
Hi,
I am using ant to build and run tests.
We run 1.6.2 on Solaris.
My problem is that I run out of memory when I run my test ( complile 1.600
files and run over 5.000 tests).
Is there a way to measure how much memory ant is consuming?
When I run top I get no pointers about memory consumption.
Hi again,
Seems like this section is giving me 'OutOfMemoryError'-problems ( see log
below).
I am using Xalan-Java version 2.6.0 to generate the reports.
I put xalan.jar,xercesImpl.jar and xml-api.jar in -Xbootclasspath for jvm.
Shall I use xsltc.jar instead to get better performance?
All hints
Hi,
I am running Apache Ant version 1.6.2 compiled on July 16 2004 on Solaris 8.
I have about 1600 source files that I build.
I used ANT_OPTS="-Xms256m -Xmx512m";export ANT_OPTS
to execute my build file. ( Is there a way to check that ant use this env.
variable?).
Then I get 'java.lang.OutOfMem
Thanks that worked very well for us!
//Mikael
-Original Message-
From: James Abley [mailto:[EMAIL PROTECTED]
Sent: den 18 mars 2005 09:06
To: Ant Users List
Subject: RE: set jvm to 1.3
On Fri, 2005-03-18 at 07:51, Mikael Petterson (KI/EAB) wrote:
> Hi,
>
> Tahnks for reply
2005 08:44
To: Ant Users List
Subject: RE: set jvm to 1.3
On Fri, 2005-03-18 at 07:20, Mikael Petterson (KI/EAB) wrote:
> Hi,
>
> I have set javac's source attribute to 1.3 but when I compile the code I
> get,
>
> ".. warning: as of release 1.4, assert is a keyword
to what version of class format
must the compiled classes conform to; compiler means
what compiler exactly should be used for compilation
(i.e. to produce these classes).
HTH Ivan
--- "Mikael Petterson (KI/EAB)"
<[EMAIL PROTECTED]> wrote:
> Hi again,
>
> So what is th
14:53
To: Ant Users List
Subject: RE: set jvm to 1.3
--- "Mikael Petterson (KI/EAB)"
<[EMAIL PROTECTED]> wrote:
> Thanks for the hint!
>
> In ant there is a property called:
>
> ant.java.version
It is the java version ant is started with.
>
> What does
mars 2005 13:49
To: Ant Users List
Subject: Re: set jvm to 1.3
See target attribute of task. You can do it
like this:
,
define javac.target properties in your
build.properties as
javac.target=1.3
HTH Ivan
--- "Mikael Petterson (KI/EAB)"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
Hi,
I am starting ant 1.6.1 with jdk1.4.2 but I need to compile my code with 1.3.
How can I set this in my build.properties and then use in my javac task?
Any hints?
//Mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hi,
I am using ant 1.6.2
I have a common.xml with a compile target:
In my proj1.xml I have the following:
Do anyone have an idea why not "additional.classpath" is added to
"common.classpath"
dependent projects
Simply let Ant build the two jars. It should only work if the JARs needs to
be updated.
Jan
> -Ursprüngliche Nachricht-
> Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 30. November 2004 15:20
> An: [EMAIL PROTECTED]
>
Hi!
In order to build a specific java project I use proj1.jar and proj2.jar in
classpath.
But these projects could be uncompiled at the time we are building our project.
I am thinking of doing the following:
* check if the dependant jars exists.
* If jars does not exist, then we compile the s
Hi,
I am using ant to build our products. I am using ant 1.6.2
I have a common.xml containing the following targets:
* init
* compile
* jar
* clean
* test:compile
* test:test
also a test-target that depends on test:setup, test:compile and test:test.
I also have a build.properties with with
Hi,
Is it possible to use uptodate on class files?
//Mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
When I read about the depend in the ant user's manual I get confused.
"The depend task works by determining which classes are out of date with respect to
their source and then removing the class files of any other classes which depend on
the out-of-date classes."
So this removes classes th
Hi,
I am restructuring my build.xml structure using a common.xml with generic targets (
thanks for all the hints I got).
I got stuc with the following problem. In my common.xml 'compile' target use a common
classpath ( plattform for all my products) but
for each product I want to add classes, to
I am resending this since I do not see the "message" being posted to ant user list.
Hi,
I am running Apache Ant version 1.5.4.
I execute first "clean" and then "all" targets.
83 matches
Mail list logo