On Friday, January 31, 2003, at 12:08 AM, Janet Abdul-Karim wrote:
In response to the 2nd email you sent me when I use the
.getProject().getName() where does that info come from. Does it come
from the .xml file where i did give the project the name. Maybe if I
understood that I could unders
In response to the 2nd email you sent me when I use the .getProject().getName() where
does that info come from. Does it come from the .xml file where i did give the
project the name. Maybe if I understood that I could understand how the class and the
.xml file works. thanks in advance for al
Here's the ant XML and a task that implements a C++ compiler. It shows you
how the different pieces in the XML file relate to the pieces that ant
expects in the Java code that ant will run. The line:
Sets up "env" to be able to reference environment variables.
Just some descrip
On Thursday, January 30, 2003, at 10:17 PM, Janet Abdul-Karim wrote:
This is what i am trying to do I have to create an htm formatted
report that includes the following
header and title
project name
[...]
I don't know where you want header and title to come from, but all the
others you can
This is what i am trying to do I have to create an htm formatted report that includes
the following
header and title
project name
project description
current date
user name
ant version
ant build filename/path
java vm version
java vm name
cpu info
What is have is this
/** Imporing necessary cl
Your best reference for Ant tasks is Ant's own source code. Check
Jakarta's CVS for details or download the Ant source distribution.
If you shared your example details with us, I'm sure we could help get
you on the right track with it.
Chapter 19 of Java Development with Ant has this review ab
If you would like a fairly simple example (which even has nested
elements), please check out http://ant.ryangrier.com. I have build 2
tasks.
On Thu, 2003-01-30 at 21:17, Janet Abdul-Karim wrote:
>
> I am having problems with creating my own task using ant. I have looked at examples
>but they ar
I am having problems with creating my own task using ant. I have looked at examples
but they are not detailed enough to give me a better idea of what I should do. I am
suppose to create a java file to extend class which I understand, but the other
requirments like getting the project name and
Ant is crashing if I put a tag inside . Here's my
target:
When I run this target I get the following error:
[junit] java.lang.NoSuchMethodError
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter.s
ta
Hello,
I am noticing interesting behavior and have a theory as to what is happing.
Basically I am calling an task with some nested tags. These
properties may or may not be set
at the time of the call.
If a property is not set, and I pass it to with
Will ${foo} then equal the string "${fo
how about putting in your init target (or whatever you're using) different
ways to set up the classpath based on whether or not that patch variable is
set.
If true, look to the build.property files for the patch.classpath setting.
You may have something like this:
patch.classpath = path/to/patch
Ahhh I think I see what your saying, and this is possibly the *other* way to
look at it that I was missing.
So your saying compile the patch within the patch directory. Of course
ensuring that the javac classpath can see my release(plus previous patches)
in the build directory. That way, when fi
Wait, you just want the changed files off in another directory, correct?
put a patch = true/false entry in your build.properties file (if you are
using one)
create a target called "patch" that only works if the patch value is true
(but gets called buy compile)
this target would also have a javac t
That works perfectly. I added: casesensitive="false" to the fileset and it
works on Win98
Thanks!
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 12:18 PM
To: 'Ant Users List'
Subject: RE: Windows 98 patternset include not working
C
I agree totally, a bit of a hack.
One way to explain my environment is to show the target I've *almost* got
working, to do the same in a hackish manner :). The only bit on this not
working yet is the last actual copy task.
Thanks Dominique for your help on this. By hook or crook I'll beat this
Maybe... but I feel it's doable in one fell swoop thanks to the power of
selectors and mappers. You're solution, if I'm right about the above, would
much more hack'ish (no offense meant ;-). If you could give more info about
how the files are laid out on disk, what dir to compare against what other
The JDBCTask.java file in the ant source tree under
/src/main/org/apache/tools/ant/taskdefs has a sample sql task in it's
comments section. The task logs the values returned from a sql select.
I put the code in below. It would be trivial to create your own ant
task based on this one and chang
I originally thought the mapper would do it, but now I've formed the opinion
(hopefully wrongly) that the mapper will just change the file name during a
copy of move routine.
I need to identify a file list.
Change that filelist.
Use the changed filelist as the definition of my source files.
I thi
Thus far the only solution I've got to work is to create a wrapper script,
and run ant nohup from that. When the script exits (which is immediately),
the nohup's parent process is immediately assigned to 1.
>From here I can close the session, and ant runs okay. This seems like a
Rube Goldberg
Sounds like a job for something along the lines of:
but since I'm not sure I followed you, I might be off. --DD
-Original Message-
From: Dan Gardner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 12:18 PM
To: 'Ant Users List'
Subject: copy,fileset,map
Oh yeah, I forgot about stdin,stdout and stderr.
stdout and stderr get redirected to 2 files (see man page)
Not sure stdin is closed or not. Not stated in Posix or svid3.
Either one of the above may be your problem.
suu
> -Original Message-
> From: Alexey Solofnenko [mailto:[EMAIL PROTE
One thing needs to be careful is which nohup you are running. There are two
nohups in Solaris OS. Also, on certain platform, i.e. HPUX and Linux, nohup
does not work on certain shell, try using different shell to execute your
nohup to see if it works.
Good luck,
Bin
-Original Message-
Fr
I'm having trouble doing the following.
1 Identify a list of changed .java files in a source/patch-directory.
This is a subset of the complete list for the release.
2 Use that list to copy the *relevant* resultant .class files in the
build area into a patches/patch-directory.
I was ho
did you add ANT_HOME/bin to your path?
Jake
At 05:48 PM 1/30/2003 +, you wrote:
I can run ant inside websphere no problem, but our project dictates that
sometimes we have to run ant outside the websphere environment.
I followed the steps as laid down in the help Manuel until I got to this
Maybe you should have a look at this:
http://www7b.boulder.ibm.com/wsdd/library/techarticles/0203_searle/searle1.h
tml
Sten Rosendahl ([EMAIL PROTECTED])
IMI Industri-Matematik International - THE ORDER COMPANY
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
I can run ant inside websphere no problem, but our project dictates that
sometimes we have to run ant outside the websphere environment.
I followed the steps as laid down in the help Manuel until I got to this
point.
Set up your ANT.HOME environment variable:
set ANT.HOME=x:\Ws_installdir\plugins
Gruenewald, Terry E wrote:
When I run ant using nohup and in the background, it runs okay. However, if
I then log out of my session, ant exits as well. Has anyone run into this
before? Does anyone know how to fix this so that the usual behavior of
nohup works.
Try redirecting all standard fi
In general "nohupped" process will exit if it asks for any user input. I do
not think ANT would ask for anything, but what is in the ANT's output? Does
it output any error messages? You might need to redirect stdin, stdout and
stderr into some files in order for ANT to work. Try running nohup witho
- Original Message -
From: "Paul Hunnisett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 01:53
Subject: Re: copy problem
> >Also,
> >(a) there is a task with axis
> >(b) it is somewhat dangerous to drive your WSDL from your Java; better to
> >write the wsd
Here's some sample code I have that involves sleep.ksh sleep.xml and
ksleep.ksh sleep.ksh turns around and calls ant -f sleep.xml. This xml
file has a single target which runs the ant sleep builtin task, and it
sleeps for 20 seconds. When I run this like this:
nohup sleep.ksh &
and then log ou
Could be a case problem... Set the ignorecase attribute (or something like
that) on the where you are using the . --DD
-Original Message-
From: Rollo, Dan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:16 AM
To: 'Ant Users List'
Subject: Windows 98 patternset include not
I'm trying to run some unit tests on Win98 and the following patternset
appears to be broken (only in Win98, other Winz are ok):
Oddly enough: "**/*.jar" works fine.
The first pattern is used to find all ".jar" files in sub directories named
"jars".
I'm using Ant v1.5.1
Is this a known is
This is an OS and Shell combination problem. That's where you should look at,
not ant.
When your terminal window (or no window) starts ant, it starts ant as 'another process
in the same process group'.
When your terminal window dies, some signal-I-forget gets propagated to all the
proce
I have had ant scripts running totally disconnected from a terminal, for
instance started from a ssh session itself started by an at job running on
another machine.
Antoine
- Original Message -
From: "Gruenewald, Terry E" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Th
In my particular case, other Java processes start nohup just fine. It is
just ant for some reason that is not working. I can't imagine what it could
be, or why ant would care about the presence or absence of the terminal.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE
We've seen similar problems when the Java processes are started using secure shell -
may be a red herring?
> -Original Message-
> From: Tiago Ferraz Machado [mailto:[EMAIL PROTECTED]]
> Sent: 30 January 2003 16:38
> To: Ant Users List
> Subject: RES: nohup not working with ant
>
>
> I h
Thank you. I'll give it a try.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I had this problem too and it was not related to ANT. It looks like some
administrators disallow nohup when it is launched from telnet sessions. The
workaround was to start another shell and launch nohup from it. It was so
long time ago, so I do not remember all the details.
- Alexey.
{ http://tre
I had the sam eproblem running a JBoss process in nohup at a SunOS :
uname -sr
SunOS 5.6
Does anyone have a clue about this ??
[]'s
Tiago.
-Mensagem original-
De: Gruenewald, Terry E [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 30 de janeiro de 2003 14:26
Para: [EMAIL PROTECTED
Davide-
Assuming you have bsf.jar and rhino.jars from Mozilla on your classpath
and the requisite http://xml.apache.org/xalan-j/ jars
If you wish to gain access to variables populated by a Query
Take a look at the ResultSet Javascript post from Cosmin
I have had the same problem as you.
I presume you are working on a UNIX platform.
I had written a wrapper ksh script, and instead of using nohup, I was
trapping SIGHUP in the script.
I do not have the code with me, but the solution works.
Antoine Lévy-Lambert
- Original Message -
From: "Gru
When I run ant using nohup and in the background, it runs okay. However, if
I then log out of my session, ant exits as well. Has anyone run into this
before? Does anyone know how to fix this so that the usual behavior of
nohup works.
-Terry
---
I don't believe the sql task is meant for retrieving records so much as
running inserts and updates. You can redirect the output to a file, which
may be the only way you can retrieve these values.
d.
-Original Message-
From: ALIA, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January
Hi. I've searched through archives but I wasn't able to find correct answer
to this question...
I'm trying to get multiple fields values from a sql task into several
variables.
For example,
SELECT field1, field2, field3 FROM table WHERE condition
And then manipulate properties like ${field1},
HI !
lots of replies so let me take time to read and thanx a lot for the
concern.
such goal as the (vanished ?) Configure project mentioned by Kyle Adams 's
was wat I was trying to push for:
"Recursive build support (call ant on every package level, and only build
files in that package or in tha
Hello,
For the javac task I would like to know if it is possible to
set the attributes
source
failonerror
debug
into the build.compiler.
Thank you
PaScaL
What you describe seems similar in some ways to what I've been doing around
my task, but it seems to me you still think the Makefile way rather
than the Ant way...
Anyhow, here's what I've done, so you can decide for yourself if you want to
take a similar approach. My goal was to build two dozens
There used to be something like this called "Configure" - it's still
linked to from the ant web site (see
http://ant.apache.org/external.html), but the link is broken.
Anyone know where this tool might have moved to?
Kyle
>>> [EMAIL PROTECTED] 01/29/03 11:42PM >>>
Hello !
Here is how I did work
All of our build.xml files are manually created due to all projects having
subtle differences. ie: one project may create a war, while another may
compile vc++ code. We have refactored our build scripts such that tasks that
are repeated over-and-over again are stored in a central script and are
imp
The reply to your specific question is that using an Unix Shell with find to
accomplish the functionality you desire..
The more general question you pose is relevant to all Ant users
My Question:
Each developer is assigned a specific package do they generate a build.xml
from their IDE or is the bui
The quickest solution might be to install Cygwin and use the unix
script... I've been doing this with ANT and other java based tools for
years, and the scripts usually require only a few minor path related tweaks
before they work on both platforms.
K
At 23:42 2003-01-29, you wrote:
He
From: "Steve Loughran" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Subject: Re: copy problem
Date: Wed, 29 Jan 2003 10:01:42 -0800
- Original Message -
From: "Paul Hunnisett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
Hi Dominique,
Dominique, you're right. That is not a good example. But that is only a
snipped out of a longer script which we use to build a component. It was the
fastest and easiest way for me to show the general usage.
Sascha
P. S. Naresh I'm glad to here that all works.
-Original Message-
53 matches
Mail list logo