You should not call Main.main(). Main.main() pretty much assumes it owns the
VM and does stuff like redirecting System.out. You do not want to do this in
a server.
You really need to be managing a Project object instance. Think of Main as
the object which manages a project from the command line.
Be careful though that one file is not included in the other. The file
that has changed timestamps may well be included in many other files,
but not require compilation itself. I don't see an easy way round this
short of using clearcase config recs (we use clearcase) so we are going
to
Hi Jason
This isn't an ant but a general javadoc problem:
If you link to an already existing java documentation,
javadoc wants to have the appropriate package-list
file (or maybe the index.html, I'm not 100% sure about
the index.html).
Changing your path to
I haven't done it myself, but I understand the ant
source code has comments at .main() explaining what
you need to do in this situation.
--- Conor MacNeill [EMAIL PROTECTED]
wrote:
You should not call Main.main(). Main.main() pretty
much assumes it owns the
VM and does stuff like redirecting
On Wed, Sep 12, 2001 at 11:44:25AM -0700, Massa, Ray wrote:
Has anyone successful called Ant from a JSP page?
Yes, I'm calling Ant from a JSP for a project now.
I started by following the advice in the javadocs for
org.apache.tools.ant.Main:
If you integrating Ant into some other tool,
Jeff Turner wrote:
I would appreciate it if proponents of doing it properly either provide code
to demonstrate how to embed Ant (with all command-line functionality intact),
or remove that (IMHO) misleading comment.
The comment is not misleading - it is entirely right and running Main
Thanks, but I think the answer is that it isn't done in javadoc, unless
someone used a javadoc-like doclet to generate their IDL documentation. I
appreciate the answer!
Hi Jason
This isn't an ant but a general javadoc problem:
If you link to an already existing java
I'm using Ant version 1.4 with starteam.
When I use the optional starteam tag under windows, everything works
great.
However, when I try to use the starteam tag under Solaris I get the
following error:
encryption support not available
I'm using the RSA RC4 stream cipher encryption for my
How can I use ant to compile one file at a time? I want to use ant
because I have filesets set up to construct the classpath, etc. But
sometimes I just want to compile one file. And of course, I'd like to
pass the file as a command line parameter.
I believe that this has to be done as a
I am trying to compare ant vs cons in the following environment:
- WinNT / 2K
- few, if any, third party libraries
- small (~50 projects)
- C++ mostly using MSVC (possibly going to gcc)
- Java using Jikes
Has anyone already done this sort of comparison? If so, could you post your
conclusions?
I'm trying to build ANT 1.4 on Sun Sparc Solaris 2.8 with Java 1.3.1
When I execute build.sh, I get the following error:
excalibur% ./build.sh
... Bootstrapping Ant Distribution
... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation
Dear all:
My system has 1000 of classes, and 1 functions. I find quite a lot of functions
are not used, they are garbage of the development process. Is there any way to
generate such kind of reports using Ant or other tools?
Regards
fanyun
Hi
I'm using the get task to install third party jar files from a web
server (using the HTTP protocol) like this:
target name=installjars
!-- create the lib folder for all third party jar files --
mkdir dir=${lib} /
!-- copy jar files to the lib folder --
get
Dear all:
I have report a bug
insert a sql file with double byte charactors have problem
some one said it will be fixed in 5.0. But when will 5.0 release?
Regards
fanyun
take a look at www.sitraka.com, they produce a coverage tool (JProbe or
JCoverage) which can show what of your code never gets executed,
although you would need to do a pretty thorough test before removing
chunks. Removing unreferenced classes is fairly easy, but functions is
a bit harder.
Thank you very much for all the info.
-Original Message-
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 5:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Calling Ant from a JSP page
Jeff Turner wrote:
I would appreciate it if proponents of doing it
Amazing...thank you so much!
-Original Message-
From: Jeff Turner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 5:06 AM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Subject: Re: Calling Ant from a JSP page
On Wed, Sep 12, 2001 at 11:44:25AM -0700, Massa, Ray wrote:
Hi, all:
Does anyone know why this is happening when I tried to run ANT?
Exception in thread main java.lang.NoClassDefFoundError:
Connectors\classes;
Thanks in advance
Ming Tan
Hello,
Maybe you will be able to answer my problem with
VSS ant tasks.
For the moment, in order to extract stuffs from
VSS, I'm using a batch file.
The two main lines are:
set ssdir=F:\MyProject\Vss (F is a W2K network
drive)
ss Get $/IIP/MyAppli -GLC:\ant\bin -I- -R
"-VLPackage v1.0"
Hi Jamie,
Thanks for the note (apologies, Diane, for missing your first reply!).
Am new to the apply task - thought from the documentation that it only checks
timestamps against a *single* destination file? I don't have any included
files, so just want to re-pre-compile only those which have
Someone did have problems with this before... I believe that the answer was
that the server's clock was fast in relation to the client's clock. Do you
get the same behavior after waiting a significant amount of time (say a day
or so)? Is the server in the same time zone?
-Jason
I'm using Ant 1.4 on Solaris, with Emacs.
My work environment is divided into projects,
each with a single build.xml, so:
~/projects/foo/build.xml
I want my Emacs java-mode to be such that
if I am editting
~/projects/foo/src/com/zeegee/Foo.java
and i do a C-c m, then I get
What
happens if you change:
vssget
localPath="./sources" serverPath="F:\MyProject\myAppli"
to:
vssget
localPath="./sources" serverPath="F:\MyProject\Vss"
-Original Message-From: sebastien alegret
[mailto:[EMAIL PROTECTED]]Sent: Thursday,
September 13, 2001 10:41 AMTo:
I'm using Tomcat's jspc as well. But instead of calling the class, I execute
the jspc.bat file.
The exec target has a output option so I use that to log the output.
target name=precompile
exec executable=${tomcat.bin.dir}/jspc.bat
set classpath=
then run ant
-Original Message-
From: Tan, Ming [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 11:28 AM
To: '[EMAIL PROTECTED]'
Subject: error running ant
Hi, all:
Does anyone know why this is happening when I tried to run ANT?
Exception in thread main
Troy,
The error message you're getting is due to a lack of encryption
support on your solaris machine. Starteam is expecting encrypted
RSA RC4 data from the client. Either install the encryption libraries
or turn encryption off under Starteam Server Properties.
BTW: If your Starteam server
Can you help to point me on where to get the encrytion libraries?
-Original Message-
From: Carter A. Thompson [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 17:40
To: [EMAIL PROTECTED]
Subject: RE: ant and starteam
Troy,
The error message you're getting is due to a lack of
I'd suggest you look at the final example given in the Apply task
description in the manual, substituting the 'cc' command stuff with your
'java' stuff and the .c/.o with your .jsp/.java stuff. Or, given that
Pete's just put through a JspC task that was submitted, I could now
suggest you might
I'm running into difficulties using the vsslabel task. Below is the command that's
being executed (as reported by -debug):
Execute:Java13CommandLauncher: $\ss Label $/0-Development/common -C- -I- -LCommon
1.0.999
The error that I get is as follows:
java.io.IOException: CreateProcess: $\ss
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eryq
I'm using Ant 1.4 on Solaris, with Emacs.
My work environment is divided into projects,
each with a single build.xml, so:
~/projects/foo/build.xml
I want my Emacs java-mode to be such that
if I am editting
Gordon,
Not sure. It looks like an old version of Ant is in your classpath or
something like that since the copy task definitely does support the
filterset element.
Conor
-Original Message-
From: Gordon Ross [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 September 2001 12:37 AM
To:
Hi,
Is it possible to compile the sources (javac task) using JDK version 1.3
when ant itself is running on JDK 1.2?
Thanks
Azariah
--- Azariah Jeyakumar [EMAIL PROTECTED] wrote:
Is it possible to compile the sources (javac task) using JDK version 1.3
when ant itself is running on JDK 1.2?
Yes -- set build.compiler=modern, includeJavaRuntime=no, and set the
classpath attribute (or nested classpath element) to the 1.3
--- Cory Adams [EMAIL PROTECTED] wrote:
Could somebody please help me with regard to using if statments in Ant?
As of release 1.4, you can use the condition task to test the value of a
property (see the doc for examples). The if/unless attributes of target
are only for testing whether a
Unless I missed it, I can't find an example of it in the documentation for
1.4, but I think the equals element of condition is what you want
Something like :
condition property=danceTypeIsSetToFunkyChicken
equals arg1=${danceType} arg2=FunkyChicken/
/condition
target
I want to start weblogic (5.1), run some tests and stop it. It starts
fine, but then just sits there. Is there something obvious that I am
missing?
My code is :
target name=test depends=compile description=run the junit tests
wlrun
classpath=${javaclasspath}
-Original Message-
From: Clinton Davidson [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 September 2001 11:55 AM
To: [EMAIL PROTECTED]
Subject: simple wlrun question
I want to start weblogic (5.1), run some tests and stop it. It starts
fine, but then just sits there. Is there
Hi,
Thanks, it works! I was able to compile my code that used JDK 1.3 classes
when running ant using JDK 1.2.
But I am surprised that it works!
Because I did not give the JAVA_HOME of where my 1.3 was installed and hence
ant has no way to get to the javac of my 1.3 installation.
Does ant use
Conor MacNeill wrote:
It cannot be done unless you are prepared to put support for this into the
buildfile. Typically this could be accomodated by having a new target, which is only
run if a property is defined. That property would be set to the file name to be
compiled and would be used to
It is done thusly:
?xml version=1.0?
project name=javac default=compile basedir=.
property file=build.properties /
property name=src value=${basedir}/
property name=build.classes value=${basedir}/build/classes/
property name=build.debug value=off/
property
On Fri, 14 Sep 2001 12:57, Eryq wrote:
Conor MacNeill wrote:
It cannot be done unless you are prepared to put support for this into
the buildfile. Typically this could be accomodated by having a new
target, which is only run if a property is defined. That property would
be set to the
Peter Donald wrote:
Ummm... given that make has had pattern-based targets
for *decades*, doesn't this strike you as kind of a glaring
omission for a tool that seeks to replace make, and
whose documentation talks about make's shortcomings?
Ummm... given that C/C++ has had pointers
42 matches
Mail list logo