I tried to run the javac task when my javadir was a softlink made in
cygwin, and it didn't work.
Ant started, which it didn't when I tried having the javadir as a
windows shortcut, but javac didn't work:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling
Is it possible to set environment variables with ant?
/klara
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I have trouble running cvs with ant
When I run:
target name=cvsupdate depends=init
delete dir=${jpda_home}/com/
cvs cvsRoot=:pserver:klaratalvath:/cvsroot
command=checkout
package=ToolsJPDATest
dest=${jpda_home}/
/target
I get:
C:\eclipse\workspace\Towerant -f
Yep, that solved it,
couldn't there have been a better error message?
or where could I have found what error 267 meant?
Klara
[EMAIL PROTECTED] wrote:
probably your destination path doesnt exist. Pls check the jpda_home property.
detlef
Zitiere Klara Ward [EMAIL PROTECTED]:
I have trouble
The timeout in the java task seems to work by calling thread.interrupt
on the thread running the actual java.
Would it be possible to make some similar feature stopping the java
process on your demand instead of after a timeout?
I guess you would have to keep some process-id in the ant-script,
I have this target:
target name=buildhello depends=initprops
javac srcdir=${basedir} destdir=${basedir}
debuglevel=lines,vars,source
include name=Hello.java/
/javac
/target
and I run:
$ant buildhello -verbose
Apache Ant version 1.5.1beta1 compiled on August 19 2002
I tried to run an ant script from java that uses the ftp task and I got:
BuildException: file:k:/rockit/qa/AutomationFramework/tests/install/install.xml:16:
Could not create task or type of type: ftp.
when I use ant outside java with the same ant-file it works fine.
I had to have
Well, obviuosly I had to set the classpath specifically java
(with -classpath)..), ant looks at the CLASSPATH but java doesn't (right)
How very smart of me..
Klara
- Original Message -
From: Klara Ward [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Wednesday, September 25
I've tried deleting the emacs ~-files with this delete task, but it won't work
target name=clean
delete
fileset dir=${basedir} includes=**/*~/
/delete
/target
Any ideas why this won't work?
Klara
I've tried deleting the emacs ~-files with this delete task, but it won't work
target name=clean
delete
fileset dir=${basedir} includes=**/*~/
/delete
/target
Any ideas why this won't work?
Klara
)
- Original Message -
From: Conor MacNeill [EMAIL PROTECTED]
To: Ant Users List [EMAIL PROTECTED]
Sent: Friday, September 20, 2002 12:54 PM
Subject: Re: deleting emacs ~-files does not work
Klara Ward wrote:
I've tried deleting the emacs ~-files with this delete task, but it
won't work
Is there a way to stop processes from ant that you've started with ant, with java or
exec?
Or do you have to use kill?
Klara
Using 1.4Beta1 and running JUnitReport I get this neat little thing:
[junitreport] Using Xalan version: 1.2.2
BUILD FAILED
java.lang.NoClassDefFoundError: com/ibm/bsf/util/BSFEngineImpl
at java.lang.ClassLoader.defineClass0(Native Method)
at
Aug 2001, Klara Ward [EMAIL PROTECTED] wrote:
So what do you think of this...
Think you've discovered a bug and provided a good testcase for it,
thanks.
The appended patch that fixes the problem will be committed in a few
minutes.
Stefan
Just to spam this list even further I'm not sure I tried junitreport with
1.4 at all. Has anyone else tried and got it to work?
Klara
-Original Message-
From: Klara Ward [mailto:[EMAIL PROTECTED]]
Sent: den 6 augusti 2001 09:45
To: [EMAIL PROTECTED]
Subject: RE: JUnit tests fail
Now it works nice. Nice to get rid of all those Transform time... as well.
Thanks everybody.
Klara
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: den 6 augusti 2001 10:04
To: [EMAIL PROTECTED]
Subject: Re: JUnit tests fail - build fail
-
Is there some way you can make build fail if the junit tests fail?
You can set haltonfailure, bur I want to run all tests. The reason I want
this is because I run cruisecontrol, and it's not really good to recieve a
message build successful when tests have failed. In the java task you can
set
On Fri, 3 Aug 2001, Klara Ward [EMAIL PROTECTED] wrote:
Is there some way you can make build fail if the junit tests fail?
You can set haltonfailure, bur I want to run all tests.
In Ant 1.4 (due to be ready rather soonish) you can set a property on
test failure - add to that a fail task
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: den 3 augusti 2001 08:38
To: [EMAIL PROTECTED]
Subject: Re: JUnit tests fail - build fail
On Fri, 3 Aug 2001, Klara Ward [EMAIL PROTECTED] wrote:
Feel like giving me a short example of how to use it?
Say your
-Original Message-
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: den 3 augusti 2001 11:59
To: [EMAIL PROTECTED]
Subject: Re: JUnit tests fail - build fail
On Fri, 3 Aug 2001, Klara Ward [EMAIL PROTECTED] wrote:
I don't think I got it to work.
My fault, it should have been
and it works, I mean it runs both the tests and says BUILD FAILED if
anyone of them fails.
Maybe this is bcoz haltonfailure attribute's value is set to false..
Try it..
With Best Regards,
Ravindra..
- Original Message -
From: Klara Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED
]
Subject: Re: JUnit tests fail - build fail
On Fri, 3 Aug 2001, Klara Ward [EMAIL PROTECTED] wrote:
I tried with failureproperty both in junit and batchtest and neither
of them worked.
junit.xml
=
project default=without-fail
target name=without-fail
junit failureproperty
But I suppose the only way of doing this without human interaction is having
an empty passphrase?
(I tried scp:ing in an expect script to enter the passphrase automatically,
but it didn't work.)
Klara
-Original Message-
From: Filip Cruz [mailto:[EMAIL PROTECTED]]
Sent: den 26 juli
I know I've read this somewhere, but I can't find it when I need it.
How do you set lastGoodBuildTime the first time?
I get this error:
clean:
init:
cruise-check:
java.text.ParseException: Unparseable date: ${lastGoodBuildTime}
at java.text.DateFormat.parse(DateFormat.java:324)
Great, now it worked. Nice stuff that came out of it as well..
Is it possible to turn off all the output(Transform time), perhaps by
a -quiet or something?
Klara
-Original Message-
From: Stephane Bailliez [mailto:[EMAIL PROTECTED]]
Sent: den 12 juli 2001 16:32
To: [EMAIL
Well, my classpath is still completly empty.
I got the old xalan-version like Stephane said.
All I did was put xalan and xerces jars in ANT_HOME/lib
-Original Message-
From: Sanjay Bhatia [mailto:[EMAIL PROTECTED]]
Sent: den 13 juli 2001 07:06
To: [EMAIL PROTECTED]
Subject: Re:
I tried asking this before without any answer, but I'll try agian:
If I want to use one buildfile to checkout the real buildfile and then run
ant with that one, can I use the target specified running ant with the first
buildfile when I run the ant task with the checkedout file?
something like
and targets
On Fri, 13 Jul 2001, Klara Ward [EMAIL PROTECTED] wrote:
I tried asking this before without any answer, but I'll try agian:
I'm sure I've answered it the first time - you can always use
-Dtarget=whatever on the command line when you invoke your outer
build file.
Another option
I use (or at least try out for a possible later need) junitreport. I've
succeded in getting the
TESTS-TestSuites.xml, I didn't have to add anything to my classpath (it's
really non-existing on my machine, I use different classpaths for different
situations) I just had to put xalan.jar and
The way I understand it you can either use
fileset dir=src_dir includes=**/*.jsp,**/*.html,**/*.css /
or
fileset dir=src_dir
include name=**/*.jsp /
include name=**/*.html /
include name=**/*.css /
/fileset
Klara
-Original Message-
From: Rob
Do you do something like this:
classpath
fileset dir=lib
include name=**/*.jar/
/fileset
/classpath
isn't that recursive by nature, the ** can stand for anything, not just a directory?
Klara
-Original Message-
From: Ola Sandness [mailto:[EMAIL PROTECTED]]
If I want to use one buildfile to checkout the real buildfile and then run
ant with that one, can I use the target specified running ant with the first
buildfile when I run the ant task with the checkedout file?
Klara
Maybe this isn't an ant-problem but anyway,
I use ant to compile with javac and run tests with java or junit.
When I run I get the usual printouts combined with a lot of lines of :
[java] count = 0, total = 9
[java] count = 0, total = 123
The number of lines seemes to have something to
I use the optional task junit, and what I did was
place the junit.jar and optional.jar in ANT_HOME/lib
- Original Message -
From: geeta eknath dhane [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 11:16 AM
Subject: How to use optional tasks of ant1.3
Hi,
I need
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 11:16 AM
Subject: Re: unwanted countprintouts for javac, java, junit
I think one of your jars is corrupt. I have seen this behaviour in that
circumstance.
Conor
- Original Message -
From: Klara Ward [EMAIL PROTECTED]
To: ant
35 matches
Mail list logo