I've never used VSS, so I'll take your word for it. I hear
it's a crummy
SCM tool. Why do people use it? Believe me, I wonder how the hell
StarTeam, which sucks compared to Perforce or even CVS IMNSHO, got
entrenched at where I work. Happened before my time.
That's exactly why people
I've intentionally sensationalized the subject. Don't be offended.
Why use Ant for things like telnet, VSS, .NET, looping
scripts, etc.? I'm
all for Ant as a build tool and tool for general
development-related Java
stuff like deploying apps or running command line,
non-interactive,
I have been seeking a way to remove assert statements from
source code
(... a copy of the source code, of course ...) so that I can compile
JVM1.1 compatible class files. The JDK1.4 compiler will only generate
JVM1.1 class files from source code without assert
statements, alas. So I've
isthere a task wich can be used to interact with the user??
example:
lets assum a targat fails i would then like to ask te user:
continue (y/n)
Have a look at the input task.
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is this book any better than the manual reprint that is the
O'reily book?
Yes. I was the tech reviewer for the book (so blame me for any mistakes) and I can
thoroughly recommend it.
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
I am running ant 1.4.1 on solaris 2.8
my question is about the javac task.
the resulting class files generated are different when using
the ant [javac]
task vs. the command line javac.
one class file size is 234 bytes and the other 309.
why would this be?
My guess is that it's using
I am tyring to use ant from Eclipse. I got the messages
below. Any idea how to fix this problem? Or how do I set
the java compiler in Eclipse? My environment is
snip
See http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_16
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL
Ant is allowing me to split my mungo project into lots of
smaller (more
manageable) projects that can be built separately or in bulk.
I am getting
lots of JAR files out as a result, but unfortunately that is
causing my
classpath to grow long, too long for certain things that need
to
Here is my what my target looks like:
target name=compile depends=prepare
javac srcdir=${WEB_SOURCE}\com\projectwise\web\common
destdir=${WEB_OUT} /
javac srcdir=${WEB_SOURCE}\com\projectwise\web\server
destdir=${WEB_OUT} /
javac
I have used Ant with JDK 1.3 for quite a long time; but now we
have a project that will be JDK 1.1 only.
I am wondering if anybody has tried this before ...
- is it doable?
- is it recommended?
- is it impossible?
Should be fine. Note that you don't have to compile or use JDK1.1 in
Ant is the thing that allows the freedom to choose your own
IDE, and I believe that was Steve's point.
Well, Ant is only *one* way of building without an IDE. I must admit we still use
batch files for our actual builds (apart from VSS fetching) for historical reasons. No
IDE dependence
For any of you who happen to work on the Ant docs, i have a
small suggestion:
how about an available since field for each task, a-la the
Java API docs?
What brought this up was my trying to use the record tag
yesterday, only to
find it wasn't in my version of Ant (i use the
Building javadoc is OK with jsdk 1.3.1, but fails with 1.4.0,
due to javadoc
confusing package named java with source files.
I'm not entirely surprised - given that JavaDoc takes the names of packages, source
files or class files, if you've got a package named foo.java, it seems reasonable
i'm trying to redirect all build output to a file. No problem
- this is covered by the ant tag.
Any reason for using that rather than the -logfile parameter?
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I was creating the javadocs for the xerces 2.0.1, but it
seems to be broken. I keep on getting a -locale should be
first argument to javadoc tool. Am i doing something wrong
or is it a javadoc bug?
Im running jdk1.4
Which version of Ant are you using? What does the snippet of build.xml
Im using ant 1.4.1, using the javadocs target on the
xerces2.0.1 build.
running with debug flag gives the command line argument as:
javadoc.exe -d
D:\justin\java\xerces-2_0_1\build\docs\javadocs\api -windowtitle XML
Standard API -locale en_US -doctitle XML Standard API
-bottom
This is what happened
1)using ant
Using what task definition? Without knowing the task definition, how are we meant to
work out what's wrong? Show us the XML!
[javac] import com.sun.j2ee.blueprints.util.tracer.Debug;
The Debug.java file is lying inside my
the directory in which Debug is lying is
D:\petStore\components\util\tracer\src\com\sun\j2ee\blueprints
\util\tracer..
it was my mistake,i meant according to the package structure..
Well it's still not going to find it - it needs to be in
This is probably offtopic a bit, but I would like to hear that I'm not
the only one getting massive slowdowns in compilation times when using
java 1.4.
110 files compiles in 20 seconds using ant on java 1.3
the same files compiles in 2.5 minutes using ant on java 1.4
Is there anything I
When compiling I obtain the following message with the properties I
declared :
[property] Override ignored for OpenCCM.version
[property] Override ignored for OpenCCM.root.dir
[property] Override ignored for config.dir
[property] Override ignored for idl.dir
...
What's the
my classpath contains a directory in which a java file is
lying according to
its package structure.(say com.abc )
i'm trying to compile another file which imports this file
through ant but ant gives me a compilation error .. on the
imported file...
saying cannot resolve symbol
i
I've got VSSGET running but it fails if there is a writable work file
already there.
I want it to ignore these on the basis of this being code
that is already fetched out by me.
Is there is any switch to set this option.
I've looked in ants docs and there is no hint,
Have a look at the
Tried autoresponse=N
no joy
any other vssget users out there ?
What *exactly* happened? And have you tried autoresponse=Y?
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I'm trying to modify an ant (1.4.1) build script so that it
includes the
getting files from vss. I've tried this script with and
without specifying a
username/password and still get the same error. When the
build fails, it
looks like there is a syntax problem with the dashes -l-. I am
Is vssget a standard task - I can't see it the 1.4.1 task docs
It's a standard optional task, as it were - it's under Microsoft Visual SourceSafe
Tasks in the list of optional tasks.
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
I have been facing some problems with builds for the
past 2-3 days.
I was getting the following error while building our
application on Win2k with jdk1.3.1_02 :
[javac] Compiling 1506 source files to
M:\rel1.1.0_build_36\cora\src\build\w
EB-INF\classes
[javac]
[javac]
[javac] The
[javac] import Converter;
Imports like this are no longer valid as of JDK1.4. Hopefully Sun will update their
samples some time...
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I'm looking to merge the contents of several jars into one.
snip
I don't believe there's a way of doing it right now (although I could be very wrong).
What you *could* do to work around it slightly more cleanly is to remove foo.jar on
clean, then just update it with the same contents as
ssget -p$/cfn/sicav/compisol/java -r -uadmin,password -lv1.01
\\cdrive\citco_vss
Actually the ssget program is something i downlaoded from the
internet - It seems microsoft had written it
But that's not what Ant is executing. What happens if you try running what Ant is
running?
Jon
--
I just checked the source code for Ant (v1.3.1) and it looks
like it gathers the collection of files together and then
passes the whole collection on to the compiler. I was
wondering if there was work-around or whatever that would
allow me to have the files compiled 1 at a time.
It is called that the Javac and Jikes compile differently.
(i.e. Jikes is more restrictive) which means that alot of
code might break.
If you have code which jikes won't compile, that's a problem. jikes is more
restrictive because it sticks to the JLS closer than javac used to. Newer
Additionally, there's no reason *not* to be using jikes.
Two reasons I can think of off the top of my head:
o Prototype generics compiler
o 1.4 assertions
My guess is that the 1.4 assertions stuff might be in jikes by now (anyone know?) but
I'd be surprised if they'd done the generics stuff
Additionally, there's no reason *not* to be using jikes.
Two reasons I can think of off the top of my head:
o Prototype generics compiler
o 1.4 assertions
OK, good points, though I'm not familiar with the generics
compiler: since
when did java officially have generics?
...really use UTF-8 - am I not using UTF-8 when using
'encoding=UTF-8'?
Is there some type of byte mark as there is with UTF-16?
I believe Stefan was trying to suggest that although you've *declared* that your file
is in UTF-8, it might *actually* be in a different encoding. How are you
When I build my code manually using javac and jar and run
using java I get
line numbers in exception stack traces, however I get an
Unknown Source
message when I repeat the build using ant. I have narrowed
this down to
being in the compile target command as opposed to the jar target.
I'm going to write my own task. It drove me crazy. Thanks
for the support
:))
What do you actually want it to do? If you want to create a zip file which contains
all the files specified, you need to use the zip task rather than the copy task.
Jon
--
To unsubscribe, e-mail:
I need to do the following thing:
1. Copy .zip file to target directory and change its name in target
location.
Problem is that file name that I need to copy is not
static. It changes
appending timestamp to it. All I know that there is only
one single .zip
file in that
I am new at this and I just want to know how to do the build
file so that it can pick it up and do the rest, ie the syntax.
Have you read any of the manual? The Using Ant section gives an example which
compiles and jars a project.
Jon
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
open up a command prompt and type in ftp, see if it finds it ... if it
doesn't yopu may need to add the path to the ftp program to your path
I shouldn't think this is relevant, as the ftp task uses a pure Java implementation
rather than any native ftp program.
Jon
--
To unsubscribe,
The problem I am having is this: we have a VSS depository
living out on a
Samba share which we have mounted. When the vssget task fires
it retrieves
all of the files in the project; but ss.exe never exits and
ant hangs until
the GC comes through and cleans up. Causing ss to crash on
The jarfile I get as a result of this is really wierd, it
looks like this:
snip
Note that the directories have been created and then the files. This
is not content I would expect to see; if I used the command line I'd
expect the jar file to look like this:
snip
It looks like ANT is
(Isn't it C#?)
How about #4 - avoid J#(C#) and stick to Java to avoid lessening of
Java development momentum?
C# and J# are different things. J# is an IDE(?)/compiler for Java (v1.1 only? Think
so) to the bytecode format that .Net uses. It's meant to be a migration path for Java
A bit off topic. But I am curious. How does one make a Jar of
Jars work?? I
tried doing this -- building a Jar of all of the third party
Jars I use and
putting this on the Classpath, and the embedded Jars were not
unpacked. What
am I doing wrong?? Do I need to use a specialized
i'm attempting to get my ant script to check out
labeled files from VSS and i'm having a couple of
problems. :) if i label individual files in my
project '2.0' and then try to get '2.0' from VSS i get
the following error:
snip
I don't believe this is an Ant problem at all - it's VSS that
I have been trying to use the jar task to replace a file in a
jar, but with
not success. It seems that if the jar file exists the jar
task don't do anything.
My solution so far is to unjar and then jar again with the
new file. Is there a better solution?
Use the update parameter on the
Hi, Anybody know to to call another build.xml file within
one build.xml ?
just line include in the makefile ?
See the ant built-in task.
Jon
I have ANT 1.4, which has the update attribute for the jar
task. However, it still doesn't work as I expected. After I ran it,
it only updated the
manifest file. Please help.
Here's my code:
!-- === --
!-- 5. Create jar file for all
I've just been experimenting with ant 1.4, and I
was rather surprised that a build that takes 2 minutes
or so with ant 1.3 takes 25 minutes with 1.4.
This is on a Windows 2000 platform.
Is there any know reason for this?
I'm sure it would help *greatly* if you could pin down where the
I haven't yet got the whole picture of what Ant is able to
do, so this might be a stupid question.
It would be cool if Ant could also build my C++ sub-project
within our
Java project. (The C++ code is invoked via JNI.)
Is this possible?
That depends on how easy it is to build your
autoresponse? Its in the vsscheckin task, but its not
documented in the vssget task.
Which version of Ant are you using? The autoresponse option is
documented in the docs on the website, and in the released 1.4 manual.
Jon
I want to send notifications from Ant upon completion of
builds from Windows DOS prompt. Is it possible?
Have a look at the built-in Mail task.
Jon
I am using v1.4beta2. My Ant build script VSSGETs files from
VisualSourceSafe, compiles and Jars. The build is fine until
I specify a
label in the VSSGET. The build always fails on or soon after
encountering a
[vssget] Version not found. The VSS db has been analyzed, fixed and
verified
I'm trying to use the ftp task, but I get the error 'Could
not create task
of type: ftp' whenever I try to run ant. I have the
optional.jar in the lib
directory: I don't understand what it's complaining about. Below is a
snippet from the build file and the log file - (I'm just
starting
Thanks for the info. Are these the only docs available for
integrating ANT
with VisualSourceSafe, I'm not sure these are the ones you refer to?
http://jakarta.apache.org/ant/manual/OptionalTasks/vsslabel.html
http://jakarta.apache.org/ant/manual/OptionalTasks/vssget.html
I was looking at
Fileset in jar formation is working fine. But the package
structure is not
stored in tha jar files. For example if i have the class files in
com.a.b.c.*.class then only my class files are stored in the
jar while the
path is not stored... How do i store the class files with the
package
How do i recreate a jar everytime ? Because when i try to
execute the same
jar command thru ant the second time, if the jar already
exists, it's not
getting recreated.
Are you sure there are new files available? I believe the Jar task will
check to see if any of the files you've specified
I would be very grateful for pointers to info and advice on
integrating ANT
with MS VisualSourceSafe, if possible from the very basics.
See the Microsoft Visual SourceSafe Tasks item in the list of optional
tasks, near the bottom, in the documentation. The docs are pretty full.
Jon
I was wondering if anyone could help me with my vssget code.
I am unable to
access any information from VSS with ant.
It just returns, incompatible database version. Thanks.
Which version of VSS are you using?
Are you sure that the VSS client installed on the client machine is the
same
I updated my database. (Both my client and server are VSS
6.0). However,
I'm still getting the same error. What exactly should I type into the
command line?
I can't remember the command-line format off-hand, but I believe if you
turn debug mode on in Ant, it shows you what is being
OK, I turned on the debug mode. Where do I look to see the
command I should use to run vssget?
IIRC, it should be logged on the console.
If not, try reading the VSS documentation.
Oh, and make sure that the copy of vss.exe that's being run by Ant is
the one that you just installed, rather
Please let me know how someone else could join this mailing list?
See the mailing list section of the Jakarta project page:
http://jakarta.apache.org
Jon
In my ant file, I have a lot of properties (for example
property name=db
value=C:\mts-test\jdbc-12.zip/ ). Instead of having the
user to change
the ant file, is it possible to get all those property values from a
different file.
Have you looked at the documentation for the Property
HI all, I have problem of using ant to generate javadoc, as I
don't very
familiar with java doc.
I use the following target block to generate javadoc:
target name=javadoc depends=init
javadoc packagenames=editor.*
sourcepath=${src.dir}
destdir=${doc.dir}
I have the following problem.
I distribute a JAR file that contains a property file. That
property file can be changed by my colleague.
My problem is, that if I make a new deployment of the jar
file, I need to take the property file ou of the old jar file
(which may have been changed).
When I zip files in ant, It doesn't override the old
version of the zip file(same name,location which
is created before.)
Do you mean you want update rather than create-new?
If so, look for a patch I posted in the ant-dev list a couple of weeks
ago - it patches 1.4, so be careful :) Let me
For future reference I worked something out. It may not be
the best way but it works.
I think it would probably be just as simple to write a Sleep task, to be
honest. It shouldn't take much code at all to write something that you
could call with:
sleep time=5000 /
Jon
I agree, in fact it's so simple it should be in the base ant tasks!
Do you actually need me to give the reply to that, or do you know it
already?
:)
Jon
OK OK, here is my ( untested ) contribution. :-)
Goodo - but if it's going to be in the core it should probably be in
package org.apache.tools.ant.taskdefs. Is that a problem in terms of
your company?
(At that stage, I'd probably also rename it to just Sleep, as under
ant.taskdefs, it's pretty
Lyndon Samson [EMAIL PROTECTED] wrote:
Excellent! You gotta love this Open Source RAD stuff!!!
Well, Steve has submitted this task more than six weeks ago, we've got
a quite long patch backlog at the moment - so much for the R above.
Ah, I didn't realise there was an official patch
if the generics collect.jar is only for compiling against,
why would you want it
in your bootclasspath, rather than in the compiler's classpath (javac
-classpath)?
Because otherwise the normal classes from rt.jar will be used, and the
new classes will be ignored - so the compiler will
I am trying to use the optional task ejbc
in order to generate ejb compliance jar file.
My build file is not working without opetional.jar file
My question is from where can I get optional.jar file
The same download page as you got Ant from, probably:
Thanks for the response. Here are the relevant parts of the build.xml
file:
property name=vss.path value=\\Puccini\VSS\win32 /
property name=project.path
value=$/${ant.project.name}/current/implementation /
vsslabel vsspath=${project.path}
I'm having some issues with exec. What I'm trying to do is get
exec to run this command
kill -9 `cat program.pid`
where program.pid file contains the
process # of the program I am killing.
all combinations of escape characters and html
markup codes seem to be not working. Does anyone
Does vsslabel recursively label everything in the specified project?
I can't seem to get it to do this. I also cannot get ss.exe to
recursively label everything. Is this standard VSS behavior?
The reason I ask is because I would like to label the entire
source tree
and then pull (get)
Hello, I've downloaded Ant 1.3 Binary Release and unziped it
onto Solaris. But
it only contains the bin and doc directory, no lib directory.
This prevent me
from running Ant on Solaris. Anyone can give a suggestion? Thanks!
Which exact file have you downloaded? Both
Is it possible to execute a task only if a property has a
specific value?
You'll be wanting to read that very nice manual and look at
the if/unless parameters to the target task.
... and then come back and say, No, that doesn't actually do what I
asked.
if/unless specify whether or not
Maybe I'm missing something, but why don't you just use the
filtersfile attribute of the filter task? This allows you to keep
your replacement filters in the normal property file.
Seems to be what you're asking for.
Aha! Excellent! That's the one. Thanks very much :)
Unfortunately I'd
Is this due to the fact that ${project}'s value containg the
name of the property you need to check? some srt of templating?
Yup. Basically I use antcall a fair amount to do things like call javac
with a common set of parameters. I pass into that task a property
project, which might have a
[Apologies for posting to both lists - I'm really not sure which this
mail belongs to. As I may have future similar ones, guidance on where to
post such mails in future is warmly welcome. I'm monitoring both lists,
so feel free to trim replies.]
I'm trying to convert our company's build
I've been trying to do something like the following:
?xml version=1.0?
project name=VSS Mobilizer Label default=notarget basedir=../..
property file=Build_And_Install/BuildProcedures/locations.map/
target name=checkbaselevel unless=bl
fail message=No baselevel (bl) property set./
/target
Is there a task to deploy an .ear archive on a J2EE server?
I've written one myself and would like to know if it could be
useful to anyone else.
Well, there's the Ear task in 1.4 which I believe creates such a
beastie, then the Ftp task which can upload it - does your task do more
than that?
does anyone have a sample code that palce the output in a log file. I
searched the mailing list and found a bunch of
questionsanswers about it.
In on message it was mentioned that logfile is a attribute of
ant task ??
But I couldn't find any info in that ?
I appreciate any help
If
If you run ant with the command-line option
-logfile myfile.log
then output will go to myfile.log
Thanks for your help. I was using that before but what i want
to do now is
to produce a log file that lists the result of each build..
Do you mean the result of each *target*? (-logfile
Still, if anyone needs a couple of utilities to trace down
where a class is being loaded from, I'm happy to share. (One's even
defined as an ant task! ;)
I've come into this discussion late, but I thought I'd chip in one small
contribution, if people don't want to download whole full
require receiving an email to confirm
it, which I can't do...
If you need to contact me in the meantime, [EMAIL PROTECTED] will
work.
Cheers, and apologies once more,
Jon Skeet
I'm having a devil of a time getting the optional.jar to be
recognized by
Ant 1.3. I'm running under JDK 1.2 on Solaris. I'm trying a simple ant
script that uses the optional ftp task:
target name=ftp depends=init
ftp server=ftp.apache.org
userid=anonymous
Jon Skeet [EMAIL PROTECTED] wrote:
Eek - I didn't realise the jar task just used jar itself. I'd have
thought it would all be coded up. I'll have to investigate further.
It is all coded up, using java.util.zip classes in Ant 1.3 and using a
new org.apache.tools.zip package in Ant
You know, I always used to believe that too, but once
I made a comment on some mailing list (I forget
which now) and was flamed to death by some guy who
said he'd written '' a popular Zip tool and he
knew for a fact you could append entries. I suspect
the Java classes that do Zip
[Deliberately cross-posted as a migration path from user to dev.
Apologies
for any confusion/offence caused.]
Jon Skeet [EMAIL PROTECTED] wrote:
It is all coded up, using java.util.zip classes in Ant 1.3 and
using a new org.apache.tools.zip package in Ant 1.4alpha.
Okay
I have a very basic question when it comes to using
the optional tasks.
I am using Ant 1.2 and according to the documentation
I have copied the optional.jar to the
$ANT_HOME/lib directory. But this does not make the
optional task (ftp, in my case) available to me in my
build file.
The
use zip task instead
its like jar but doesnt create the manifest file!
The jar task actually extends the zip task, IIRC. Does the zip
task have update features? I didn't think so, but I could be
wrong.
Jon
The jar task actually extends the zip task, IIRC. Does the zip
task have update features? I didn't think so, but I could be
wrong.
I don't think zip does, either. And I think the reason the
jar task
doesn't is because Ant tries to be compatible with JDK 1.1, and that
didn't offer
Liu, Kenneth Albert (Kenneth) wrote:
I use vsslabel a lot and have never observed this behavior.
Hmm... I suspect it may be something to do with options in the GUI then.
I have Reuse last comment *unchecked* in the GUI. I also have
Prompt for comments on the command line under Command Line
I've only recently started using Ant, but I was delighted to see
that it had VSS tasks. Unfortunately, when I tried to label something,
it popped up an external editor window to ask me for a comment.
Apparently
this doesn't happen to the author of the task.
I've written a small patch to change
Yeah. I'm trying to reconfigure my system environment
variables...
Strange eh? Perhaps I moved a jar or something.
I suspect it's more likely that you haven't quoted a filename
somewhere. I've seen this with IBM's Java, btw - on W2K at least,
if I run:
c:\Program
Title: RE: New ant user question
it's possible to use jikes with Ant instead of 'javac' as default compiler?
how?
Specify jikes as the value for the property build.compiler. See the documentation
for the javac task.
Jon
Title: RE: Jar updating?
there was a discussion on this recently:
snip
Excellent - thanks very much. It's not entirely pleasant (and I guess it
won't be terribly fast) but it's much better than doing it all manually.
Presumably I could extend the jar task itself to do this
Title: Apologies for HTML mails...
Apologies to all for the HTML mailings. As far as I can tell,
this *should* be in plain text - I'm setting everything I can find
to treat it as plain text. If it still comes out in HTML I'll
ask my sysadmin to have a look at the server side.
(If anyone
Title: Jar updating?
Just for fun, I'm trying to convert our company's current
build procedure to use Ant. If it works, I'll move it over properly.
One of the things we do in a few places is add/replace files within a
jar. As far as I can see, the standard jar task is only capable of
99 matches
Mail list logo