Can you be a little more
specific about "not all the files it should"?
If I understand this correctly
it creates some files but not all?
Exactly this is the case.
What is the behaviuor if you
execute javac outside of Ant?
All class files are generated if I execute
javac outside of
Hi
I'm running cygwin under win 2000 and Ant 1.3. When running the ant script
it always prints the following error on the std out:
[: and: unknown operand
It then picks up the buildfile and runs the tasks (perfectly).
Can I remove this error?
--
Thomas
Hello,
I'm using ANT 1.3 and I have problems with the available tag:
target name=prepare
tstamp/
available file=${build.dir}/modules-ant.xml
property=modules-ant/
/target
!-- generate ANT file --
target name=generate-ant depends=prepare unless=modules-ant
style basedir=.
I *think* your logic's negated. Try using 'if' rather than 'unless'
-Original Message-
From: Alex Gugel [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2001 10:29 am
To: [EMAIL PROTECTED]
Subject: --available-- dos not work correctly
Hello,
I'm using ANT 1.3 and I have problems
I think my logic is correct. I want to execute generate-ant if
${build.dir}/modules-ant.xml is NOT available.
-Original Message-
From: Morrison, John [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 7. Juni 2001 11:35
To: '[EMAIL PROTECTED]'
Subject: RE: --available-- dos not work correctly
Stefan Bodewig wrote:
Does running ant -verbose give any clues?
Thank your very much. The -verbose option helped a lot. The property has
already been set by another ant script. I have the following situation:
A --calls-- S --calls-- B --calls-- S
The first S set the property. And for the
Title: How do I get the log file name?
I want my build to mail the log file to a list of people. I have looked at the mail command and I am wondering how I get the file name of the log file?
Patrick O'Hara
Workscape, Inc
N17 W24222 Riverwood Pl
Waukesha, WI 53188-1162
262-408-3849
We have one of those locking source-control systems here that gets all files
as read-only, unless you lock them, in which case it gives you write
permissions. I want to set up a FixCRLF task to fix some of the heinous
crimes against linefeeding and tabbing I see going on in our sourcefiles.
For
http://jakarta.apache.org/ant/faq.html#mail-logger
- Original Message -
From: O'Hara, Patrick [EMAIL PROTECTED]
To: Ant User Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 6:48 AM
Subject: How do I get the log file name?
I want my build to mail the log file to
Well, I thought I had found a rather clever way to do this:
target name = beautify description =
Cleans up line feeds and tabs if you are in cygwin
!-- find the writable source files so we don't chmod them back to
read-only --
exec executable = find output =
--- Thomas Tuft Muller [EMAIL PROTECTED] wrote:
I'm running cygwin under win 2000 and Ant 1.3. When running the ant
script it always prints the following error on the std out:
[: and: unknown operand
It then picks up the buildfile and runs the tasks (perfectly).
Can I remove this
I'm running the exact same configuration and I've never seen that error
before. If you want to trace through the execution of the ant shell
script, append a '-x' to the #!/bin/sh line at the start of the script.
This should help you localize the problem within the script.
Thomas Tuft Muller
This will be my last entry on this topic, I promise, because it's a little
off topic.
I've got suggestions that instead of whinning why don't I 'raised
enhancement requests', contribute
But before you say I'm a negative thinker, put yourself in my shoes
I'm reading the USER manual - I'm
You can also do this, which doesn't require a logger. I have a build.bat
(Win2K) that calls Ant:
.
.
.
call ant.bat -emacs -buildfile %DS_HOME%\tools\build.xml %DO_DS_LOG%
%*||goto FAILED
:SUCCEEDED
echo Build.bat success
if not defined DO_DS_LOG goto BUILD_DONE
echo Build.bat sending mail
- Original Message -
From: Mark Ashton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 12:21 AM
Subject: RE: building a fileset with specific permissions?
Well, I thought I had found a rather clever way to do this:
target name = beautify description =
Unfortunately, exactly how the command is executed is based on both the
platform and the current JDK revision.
If you're on JDK 1.3, then it uses Runtime.exec() which quickly dives
into native code. Under 1.1 or 1.2, it uses the antRun wrapper script
to change directories and then execute the
At 08:38 AM 6/7/01 -0600, Larry V. Streepy, Jr. wrote:
Wouldn't increasing the value of now incorrectly hide recent
modifications on filesystems that are more granular? Especially if the
file is modified during the build process?
It checks that the OS is windows - so it should only effect that
That's all I cared about. Cool.
MrT
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 10:38 PM
To: [EMAIL PROTECTED]
Subject: RE: perl scripts for tomcat.
Jesse,
We already have a Perl script to launch Ant (runant.pl) and
| I'd recommend bracketing the script with set -x/set +x to see what line
| it's complaining about. Once you have that info, if it's something you're
| not sure how to fix, write back.
|
16:34:15 makembx
+ [ -f /cygdrive/c/Documents and Settings/ttm/My Documents/home/.antrc ]
[: and: unknown
Actually, you're hitting up against several problems. The first is that
running find from an exec will run the DOS find command unless you
specify the full-path to pick up the Cygwin one (haven't been able to
figure out why though), or unless you exec 'sh' and run the find from
there. The second
Title: RE: How do I get the log file name?
Did not answer the question I asked.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: Re: How do I get the log file name?
--- Larry V. Streepy, Jr. [EMAIL PROTECTED] wrote:
Wouldn't increasing the value of now incorrectly hide recent
modifications on filesystems that are more granular?
It's only done for Windows.
Diane
Stefan Bodewig wrote:
Peter Donald [EMAIL PROTECTED] wrote:
The FAT filesystem
Title: RE: How do I get the log file name?
I was hoping to use the mail task in Ant. In Ant I know that the build was successful, and I must know what the log file name is somewhere. Is it in a property? What is the name? I have everything else to use the mail task except the log file name.
But here's the problem: We can't know where the doc fails you unless you
tell us -- we're not mind-readers. That's why my initial reply to your
first failing grade posting was to ask you where, specifically, the
documentation was insufficient. People use documentation in different
ways: some
A-ha! -- spaces in your $HOME. Try adding quotes around $HOME/.antrc --
ie:
if [ -f $HOME/.antrc ] ; then
(Just FYI: the [: is equivalent to test: -- IOW, it's the name of the
command -- so it reads: 'test' doesn't know what to do with the and
after the /cygdrive/c/Documents.)
Diane
---
You're right, I apologize. But mailing the log file from within Ant before
its finished writing to it wouldn't be a good idea, I don't think.I do
not believe you can get the log filename from within Ant - I tried
the -debug option and its not part of the built-in properties that I can
tell.
I checked the source safe and ant doc but couldn't come up with anything
useful :(
So what I understand from this is that I can control which file to get form
the sourcesafe when i perform ant getcode from the command line
Is that correct ?
From: Peterson, Lance [EMAIL PROTECTED]
Reply-To:
You could always do this when you run Ant:
ant -Dbuild.log=logfile -logfile logfile
and use the ${build.log} property to get the filename. Just make sure that
the two logfile strings are always the same. I took a quick glance at
Ant's source code and did not see anywhere where the log
I found Ant documentation of great help, If it had more than what it has
now, perhaps it would defeat the purpose. However for people who're used to
getting software documentation in the form of a set of books, its a
different matter.
There is however a need for gathering the various ways people
Title: RE: How do I get the log file name?
You might have a problem with this, but I'm not 100% sure. You should probably do some tests to prove me wrong. The thing that might cause a problem is that if the mailing task is in this build file, then the logging task will still be writing to the
Title: Chicken and Egg question
I have the following which does not work:
tstamp/
property name=build.dir value=Build${build.num}-${DSTAMP} if=build.num/
property name=build.basedir value=${weblogic.basedir}/${starteam.viewname}/${build.dir} if=build.num/
path id=project.classpath
Title: Chicken and Egg question
I have successfully installed Ant
in VAJ.I copiedthe example
build.xmlfile from the VAJ
integration doc and just changed the Ant
path and the VAJ path in it. But when
Istart the Antidote Integration tool , enter this build file path
and click re-load, I
I don't see where you're defining build.classes, but if it's the output
dir where your classes get built into, then you shouldn't need to include
it in your path, since the directory specified in the destdir attr is
automatically included in the classpath for the compiles.
But to answer the
this helped a lot..I've got something to work on now. So it's not working
correcty.
What I don;t understand is how to use exec task with vssget. I mean what is
the right way to execute vssget with -GWS option ??
Thanks
From: Peterson, Lance [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To:
You don't use exec task with vssget. Instead of using the task vssget, you
use the task exec.
His example shows how to use that task:
Example:
exec executable=${ss.path}/ss.exe
arg value=get /
arg value=${project} /
arg value=-R /
arg value=-I- /
arg
Title: RE: Chicken and Egg question
How would I combine a path and a property to make a new property?
Pat O
[EMAIL PROTECTED]
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Chicken and Egg
Title: Does anyone have any docs on PATH?
I saw the use of the PATH on this list. I have grep'd the manual dirs and cannot find any docs on it. Is it optional? Is it new?
Patrick O'Hara
Workscape, Inc
N17 W24222 Riverwood Pl
Waukesha, WI 53188-1162
262-408-3849
262-408-3840 Fax
[EMAIL
Title: Chicken and Egg question
Can
you describe what do you intend to do?
-Original Message-From: Deo, Suchitra
[mailto:[EMAIL PROTECTED]]Sent: June 7, 2001 3:14
PMTo: '[EMAIL PROTECTED]'Subject: Visual Age
for Java integration with Ant.
I have successfully installed
ohh ok ... now it makes more sense to me...how does the -Y part work in
front of the ${ss.user}.Somehow I can't manage to specify username and
password we have created in the source safe database for getting the code
from it.
From: Jeff Post [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To:
Can I ask a slightly off-subject question about this type of thing?
Why doesn't Ant resolve the variables in an attribute of a task at
runtime? Why do it at setup-time, where it may be in a different
state? It would be more intuitive, at least to me, to have the
variable values able to
Title: Chicken and Egg question
I wish to do the
build in Visual age for Java. So I followed the instructions from the
integration doc that is on the apache site. I was able to install Ant on Visual
Age. Now I need to build a project. So I open the tool-integration gui (this I
believe is
in my earlier message I'd asked about -Y
the user name and password I have is ant, ant
So when I write arg value=-Yant, ant /, i get the following
D:\ap2\javasrc\serverant getcode
Buildfile: build.xml
getcode:
[exec] Username: ant
then it just hangs there !!
From: Jeff Post [EMAIL
--- O'Hara, Patrick [EMAIL PROTECTED] wrote:
I saw the use of the PATH on this list. I have grep'd the manual
dirs and cannot find any docs on it. Is it optional? Is it new?
See the Path-like Structures section under Using Ant in the manual.
(But you're right, it probably should have an
--- O'Hara, Patrick [EMAIL PROTECTED] wrote:
How would I combine a path and a property to make a new property?
path id=generic.path
pathelement location=/some/file.jar/
/path
property name=generic.path refid=generic.path/
property name=new.path value=/some/new/file.jar;${generic.path}/
(Or
Title: Chicken and Egg question
I
didnt use the build file you're using, but i can see one defect in this build
file
In
VAJLOAD task, use vajproject instead of project.
e.g.
vajload
vajproject name="Ant" version="1.3"/
vajproject name="Apache Oro RegExp"
version="2.0.1"/
/vajload
Title: Chicken and Egg question
What did you use?
All I am concerned about is to get the build working in
VAJ.
Thanks,
Suchitra
-Original Message-From: Shaikh, Mehmood
[mailto:[EMAIL PROTECTED]]Sent: Thursday, June 07,
2001 4:35 PMTo: '[EMAIL PROTECTED]'Subject:
RE:
Thank you.
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:17 PM
To: [EMAIL PROTECTED]
Subject: RE: Listener question
Yes
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7
Thanks for the replies so far ...
I want to also add that only ANT is having a problem deleting this jar.
If I go to that file through explorer, I CAN delete it manually.
Therefore, I don't think it's a locking issue. I'm worried that it's
some bug having to do with the recursive deletion.
Title: RE: Does anyone have any docs on PATH?
Thanks.
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Does anyone have any docs on PATH?
--- O'Hara, Patrick [EMAIL PROTECTED] wrote:
I saw the
Title: RE: Chicken and Egg question
OK, I think I can figure it out from there.
-Original Message-
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: RE: Chicken and Egg question
--- O'Hara, Patrick [EMAIL PROTECTED]
Good suggestion, Nico.
I'm using Ant 1.3 on Win2000. Here's a simplied version of the relevent
parts of my build.xml file:
target name=prepare
!-- Set up web application directory --
mkdir dir=${webapp.home}/WEB-INF/lib/
copy todir=${webapp.home}/WEB-INF/lib
fileset
Title: RE: Chicken and Egg question
OK, we seem to be getting closer. Here is what I have at this point. jar.dir is also set by a task. I can now add jar.dir, but I also want to add all jar files in the jar.dir. I cannot create a fileset at this level (I tried that) can I wrap the fileset in
I think it is hanging because it is waiting for a password. Try arg
value=-Yant,ant / (remove the space) and see if that works.
JP
-Original Message-
From: Pinar Bicioglu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 1:17 PM
To: [EMAIL PROTECTED]
Subject: RE: doing SourceSafe
I have following xml files and I want to call them in build.xml. How do I
do that?
intro.xml
initial.xml
prebuild.xml
prepsrc.xml
compile.xml
distrib.xml
Thanks in advance.
Afzal
--
Note: The information contained in
Is it possible? When I try to use the junit task, I get the msg that you see
below. The file optional.jar isn't included in the binary distribution.
C:\Home\MicrosoftSolutions\MMLBiztalkGateway\Main\build.xml:83: Could not
create
task of type: junit. Common solutions are to use taskdef to
- Original Message -
From: Jamie Tsao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 07, 2001 11:55 PM
Subject: RE: Ant Problems, Win 2000
That's what I figured originally, so I basically just tried running my
prepare target first, which only copies files over, then I
Hi,
I've used Ant before on a Solaris, and found it to be quite a reliable,
stable build tool. I'm currently using it on a Win 2K platform, and
have run into some strange bugs.
Bug 1:
For some reason, the delete task doesn't behave properly sometimes. For
my clean target, I'm deleting the an
If the files are being used by another process, Win2k, by default puts a
lock on these files. Hence, you will receive an error on delete.
MrT
-Original Message-
From: Jamie Tsao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 5:27 PM
To: [EMAIL PROTECTED]
Subject: Ant
That's what I figured originally, so I basically just tried running my
prepare target first, which only copies files over, then I run the
clean target, which deletes those files. No process could possible be
using those files at that point, but I still get the errors.
Ideas ? Possible bug ?
-
One thing that may (possibly) be locking those files is either Fast Find
from MSOffice, or the Indexing system that's part of the Search...
functionality off of the Start menu.
The Indexing system likes to grab new directories and lock them while it is
scanning and updating its index.
Look for
You need to get the optionl.jar from here:
http://jakarta.apache.org/builds/jakarta-ant/release/v1.3/bin/
and put it in your ANT_HOME/lib directory
JP
-Original Message-
From: Boutelle, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 4:23 PM
To: '[EMAIL PROTECTED]'
Hi,
This really neat as it really helps for editing with the dtd.
The problem is that the ant build file has to be run once before the
doctype can be added to the build.xml.
!DOCTYPE project SYSTEM project.dtd
Any ideas other than generating first and then adding doctype to the
build.xml?
I am starting a server within my build file. Now I would like to run a task
after starting the server, but as the server task has not returned yet, it
just sits there handling requests. Is there any way to change this behavior,
so I could actually execute another task after the server is started?
This is fairly common. Is there anywhere in ant file that you *use* the jar
? (ie in classpath of a java task or like). If so it is likely that this
task is locking the jar. SO when you try to delete it, it fails but as soon
as ant finishes, the jar is unlocked. Thus in the second pass you can
here you go ...
- jamie
-Original Message-
From: Peter Donald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 5:57 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Ant Problems, Win 2000
Curious - could you send your build file to the list (or to me if it is
large)
After you've downloaded the optional.jar as outlined on the thread below,
you may also have to add a taskdef tag in your build.xml to make use of
the optional task, if they're not recognized natively (although I believe
that the junit task does not require it, but it's a good preventative
I had the same problem, and if I ran the clean target twice, it would work
on the second attempt.
-Original Message-
From: Jamie Tsao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Ant Problems, Win 2000
Thanks for the replies so far
h ...
That jar IS in my classpath, but the clean target I'm running doesn't
call javac or anything else that would use the classpath. Besides, I
waited for hours (while doing other stuff, of course !!), and tried
running the clean target again, and I still get the same problem. The
Curious - could you send your build file to the list (or to me if it is
large) so I can have a look.
At 05:38 PM 6/7/01 -0700, Jamie Tsao wrote:
h ...
That jar IS in my classpath, but the clean target I'm running doesn't
call javac or anything else that would use the classpath. Besides, I
If you want to see which optional tasks are pre-defined, look in the
defaults.properties file in the taskdefs package. This provides the
task-to-class mappings that are built-in to ant.
Eddie Bernard wrote:
After you've downloaded the optional.jar as outlined on the thread below,
you may
Patrick O'Hara [EMAIL PROTECTED] wrote:
I am wondering how I get the file name of the log file?
The default logger will write to stdout or whatever you specify with
the -logger option - even the logger doesn't know the name of the file
as Main simply opens that file and redirects System.out to
Peter Donald wrote:
No one has commented on this yet. I would like to add it in if no one
objects? (Nice for win9x systems that don't have scripting power of NT or
the ability to set ENV vars without a reboot).
I think it is good. we develop on a mix of platforms here, and your
tool will
72 matches
Mail list logo