JBoss 2.4.4 Taskdef

2002-11-22 Thread Daniel Bruce Lynes
Sorry I hadn't posted it earlier. I've just been quite busy, and forgot to post. All that is needed to add to an Ant build script to use this taskdef, currently is something similar to the following: As you can see, it's quite simple to use. It currently only supports

JCSC -- to be added as external Tool and Task

2002-11-22 Thread Ralph Jocham
Hi, the Ant external tools and task website states: [...] If you've written something that should be included, please post all relevant information to one of the mailing lists. [...] I did that. JCSC (Java Coding Standard Checker) can be founnd on http://jcsc.sourceforge.net Could someone from th

RE: Displaying path info

2002-11-22 Thread Dominique Devienne
Brute force: Nicely formatted way: --DD -Original Message- From: Nau, Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 5:47 PM To: [EMAIL PROTECTED] Subject: Displaying path info Is there anyway to print (echo) what is currently in a particular path? For exa

Displaying path info

2002-11-22 Thread Nau, Michael
Is there anyway to print (echo) what is currently in a particular path? For example: compile.cp = ${compile.cp} This doesn't work, is there another way? Mike. -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Accessing manifest information from within an ant build

2002-11-22 Thread Dominique Devienne
I don't think so. Not directly. I'd define a fileset of your JARs, and write a small JavaScript to look over it, and use JDK's import java.util.jar.*; new JarFile(filename).getManifest().getMainAttributes().getValue( Attributes.Name.IMPLEMENTATATION_VERSION); Almost a one liner ;-) --DD -O

Accessing manifest information from within an ant build

2002-11-22 Thread Nau, Michael
I want to find a way to print what jar files currently exist in a specific directory and what there version is (via their manifest file). It looks like I can use the task to loop through all the jar files in the directory, but I'm not sure how to access the version information from the manifest

RE: New User - Problem - RESOLVED

2002-11-22 Thread FYale
Hello, I resolved the issue by physically adding "C:\jdk1.3.1_02\lib\tools.jar" to the CLASSPATH variable. In the batch file ant.bat, there exists a statement: - if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\tools.jar" When this statement was executed, th

RE: New User - Problem

2002-11-22 Thread FYale
Hello Christian, My PATH statement does begin with %JAVA_HOME%\bin, as you suggest. I can type stuff like, "java -version" from any prompt and the returned result is what you would expect. What puzzles me is that the tag from the build.xml file yields the "Modern compiler is not available - usi

Re: New User - Problem

2002-11-22 Thread Christian Wolfgang Hujer
Hi, > > C:\j2eetutorial\examples>ant all > > The filename, directory name, or volume label syntax is incorrect. > > Buildfile: build.xml > > > > init: > > > > savingsaccount: > > [javac] Modern compiler is not available - using classic compiler > > [javac] Compiling 5 source files to > > C

RE: New User - Problem

2002-11-22 Thread FYale
Roy, Thanks for the quick response. The actual environmental variable is in uppercase. What I included in my original post was meant to show the current value: - I typed C:\j2eetutorial\examples>set java_home - and it responded: JAVA_HOME=C:\jdk1.3.1_02 Thanks, Fred > -Original Mess

RE: New User - Problem

2002-11-22 Thread Roy Truelove
I believe that environment variables are case sensitive.. try JAVA_HOME. -Roy > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 22, 2002 3:03 PM > To: [EMAIL PROTECTED] > Subject: New User - Problem > > > Hello, > > I am attempting to use A

New User - Problem

2002-11-22 Thread FYale
Hello, I am attempting to use Ant to build J2EE tutorial examples as outlined on the Sun web site. My background in Java is very limited, the probable cause of my difficulties. Anyway, here is what I am getting: C:\j2eetutorial\examples>ant all The filename, directory name, or volume label synt

RE: hack? - Custom task, java.lang.VerifyError error

2002-11-22 Thread Roy Truelove
A followup to this: this error manifests itself on jvm 1.3.1_01 as the class just not being found. In the interm I've fixed the problem.. I added an empty static block to the problem class, and now don't have any errors : static { // do nothing. } the comment in the code said that it nee

hack? - Custom task, java.lang.VerifyError error

2002-11-22 Thread Roy Truelove
Hello all, I seem to be the victim of a "hack" in 1.5.1 (jvm 1.3.1_4). I'm getting the following error when ant is initially trying to load my custom task : -- java.lang.VerifyError: (class: com/ipicorp/anttasks/TaglibAdd, method: getXmlDoc signature: (Ljava/io/InputStream;)Lorg/w3

Re: Ant Featured in Out-of-the-Box

2002-11-22 Thread Bill Burton
Hello, See the following page on how to "flush" environment variable changes so they are available to other applications: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/environment_variables.asp. -Bill Eric Weidner wrote: We are using jRegistryKey and we wrote wr

Re: load a property file based on operating system

2002-11-22 Thread Kevin HaleBoyes
> From: Magesh Umasankar <[EMAIL PROTECTED]> > The element must be specified as a > nested element of I've now actually implemented your suggestion but I've hit a snag. The property file contains a property called 'catalina.home' which points to my installation directory of Tomcat4. This path

Re: load a property file based on operating system

2002-11-22 Thread Kevin HaleBoyes
> From: Magesh Umasankar <[EMAIL PROTECTED]> > The element must be specified as a > nested element of I figured that would be the answer. In my particular case it will work out just fine but in other cases I can see it as being a bit inconvenient to insist that these properties get set inside a

Re: replacing text in a file during a copy

2002-11-22 Thread Kevin HaleBoyes
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > > I use xdoclet to build by web.xml's; it takes merge files alongside > @webdoclet tags in the source. look at xdoclet.sf.net > I'll have a look, thanks. Also, many thanks to Magesh Umasankar for spotting the typos. Even after being told that ther

xml namespace question (was: replacing text in a file during a copy)

2002-11-22 Thread Brian Agnew
If you can write an xpath expression to reference every attribute with that namespace, then I suspect the answer would be yes (but I haven't tried it). If I get time today I'll try it out... --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > Since you're online, let me highjack this thread with

Re: problems with memory

2002-11-22 Thread Markus Dettori
- Original Message - From: "Miguel González Castaños" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 10:30 AM Subject: Re: problems with memory > As you can see I am pretty lost, I am new in all this stuff. > > I dont understand what you mean

Re: problems with memory

2002-11-22 Thread Miguel González Castaños
As you can see I am pretty lost, I am new in all this stuff. I dont understand what you mean with the tasks that i am using. By the way the version of the java compiler is 1.1.8, should I change something in the build.xml? I also have set the which was set to false before. I have changed the he

Re: problems with memory

2002-11-22 Thread Markus Dettori
- Original Message - From: "Miguel González Castaños" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 9:37 AM Subject: Re: problems with memory > Ok I have changed in my targets of build.xml in jvmarg =" -Xms=64m". I have > 256 Mb of memory an

Re: problems with memory

2002-11-22 Thread Miguel González Castaños
Ok I have changed in my targets of build.xml in jvmarg =" -Xms=64m". I have 256 Mb of memory and 600 of swap space. Is that amount of memory enough? By the way someone ask me which kind of compiler I use. In jvmarg I see a "classic". thank you very much indeed Miguel > > > Hi again, > so if yo

Re: problems with memory

2002-11-22 Thread Markus Dettori
- Original Message - From: "Miguel González Castaños" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 8:48 AM Subject: Re: problems with memory > Hello again, > > I have used verbose mode and if anyone wants me to send over the log file, > pl