RE: Calling Ant from a JSP page

2001-09-13 Thread Conor MacNeill
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.

RE: Getting around JspC re-precompiling

2001-09-13 Thread Jamie . Echlin
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

Re: linking in javadoc

2001-09-13 Thread Ernst Plüss
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

RE: Calling Ant from a JSP page

2001-09-13 Thread Lauren Commons
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

Re: Calling Ant from a JSP page

2001-09-13 Thread Jeff Turner
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,

Re: Calling Ant from a JSP page

2001-09-13 Thread Conor MacNeill
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

RE: linking in javadoc

2001-09-13 Thread Jason Rogers
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

ant and starteam

2001-09-13 Thread Troy Gould
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

compiling one file at a time

2001-09-13 Thread Max Gravitt
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

comparing ant vs cons

2001-09-13 Thread JohnA
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?

taskdesk.Copy error when building ANT 1.4

2001-09-13 Thread Gordon Ross
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

generate unused function report

2001-09-13 Thread fanyun
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

Problems with the get task on Windows 2000

2001-09-13 Thread Per Thomas Jahr
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

When will ant 5.0 release

2001-09-13 Thread fanyun
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

RE: generate unused function report

2001-09-13 Thread Jamie . Echlin
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.

RE: Calling Ant from a JSP page

2001-09-13 Thread Massa, Ray
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

RE: Calling Ant from a JSP page

2001-09-13 Thread Massa, Ray
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:

error running ant

2001-09-13 Thread Tan, Ming
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

Ant VSS tasks trouble

2001-09-13 Thread sebastien alegret
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"

RE: Getting around JspC re-precompiling

2001-09-13 Thread dhay
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

RE: Problems with the get task on Windows 2000

2001-09-13 Thread Jason Rogers
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

How to javac *only* the .java file I am currently editting?

2001-09-13 Thread 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 ~/projects/foo/src/com/zeegee/Foo.java and i do a C-c m, then I get

RE: Ant VSS tasks trouble

2001-09-13 Thread Vittoria, Felice
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:

Re: JspC ALWAYS recompiles files that haven't changed!

2001-09-13 Thread Blaine Kendall
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

RE: error running ant

2001-09-13 Thread Daisy Guo
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

RE: ant and starteam

2001-09-13 Thread Carter A. Thompson
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

RE: ant and starteam

2001-09-13 Thread Troy Gould
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

RE: Getting around JspC re-precompiling

2001-09-13 Thread Diane Holt
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

VSS Label (Ant 1.4)

2001-09-13 Thread Kyle Adams
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

RE: How to javac *only* the .java file I am currently editting?

2001-09-13 Thread Conor MacNeill
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

RE: taskdesk.Copy error when building ANT 1.4

2001-09-13 Thread Conor MacNeill
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:

using different JDK version for javac than ant

2001-09-13 Thread Azariah Jeyakumar
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

Re: using different JDK version for javac than ant

2001-09-13 Thread Diane Holt
--- 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

Re: Using IF

2001-09-13 Thread Diane Holt
--- 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

RE: Using IF

2001-09-13 Thread J. Matthew Pryor
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

simple wlrun question

2001-09-13 Thread Clinton Davidson
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}

RE: simple wlrun question

2001-09-13 Thread Conor MacNeill
-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

RE: using different JDK version for javac than ant

2001-09-13 Thread Azariah Jeyakumar
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

Re: How to javac *only* the .java file I am currently editting?

2001-09-13 Thread Eryq
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

Re: How to javac *only* the .java file I am currently editting?

2001-09-13 Thread Jim White
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

Re: How to javac *only* the .java file I am currently editting?

2001-09-13 Thread Peter Donald
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

Re: How to javac *only* the .java file I am currently editting?

2001-09-13 Thread Eryq
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