RE: adding class-path to manifest

2001-04-12 Thread Marc Portier
taking this step by step: 1. you create your build file as suggested by Isaac jar jarfile="NameofJartoCreate.jar" basedir="wheretojarfrom_is_a_directory_that_holds_NO_Manifest.mf_in_either_s ubdir" manifest="yourManuallyEdited.mf" / 2. you manually edit your own Manifest file, but you

RE: project properties?

2001-04-12 Thread Macey, Ian
-Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Is there anyway to access the arguments? ${ant.project.name} and ${basedir}, there is no property for the default target though. ${basedir} will be an absolute path BTW. The manual has a section labeled

still having problems when invoking JUnitReport

2001-04-12 Thread Ingmar Stein
Y - April 12 2001junitreport:[junitreport] Applying 'all-packages.xsl'. Generating '/home/tester/logs/20010412/html/all-packages.html'XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xalan.xpath.xdom.XercesLiaison instead!XSL Error: SAX Exceptionorg.apache.xalan.xslt

RE: adding class-path to manifest

2001-04-12 Thread Marc Portier
have been looking into the ant code since my posting (quite impressed by the introspection architecture, learning a lot, wondering if there are any design docs or manuals saying more about building your own ant tasks?) in every case ant is sliding in a copy of some default manifest file (see

RE: still having problems when invoking JUnitReport

2001-04-12 Thread Stephane Bailliez
uence is [prepare, junitreport, clean, realclean, checkout, compile, javadoc, main, movelog, mail, report, junit]prepare:Setting project property: DSTAMP - 20010412Setting project property: TSTAMP - 1038Setting project property: TODAY - April 12 2001junitreport:[junitreport] Applying

RE: Subproject builds and a master build

2001-04-12 Thread M.A.Dunphy
Title: Subproject builds and a master build Hi Nicolas, Well the solution I've come up with is this: 1) Each subproject build file defines property subprojectx.class.path = ${java.class.path} 2) Thus when using this build file, the caller must have setup the environment CLASSPATh

Re: still having problems when invoking JUnitReport

2001-04-12 Thread Ingmar Stein
mmm... looks strange... it normally happens when there is another parser in front of xerces. Are you sure you don't have anything in your JDK ext directory ? Yeah, sure. If not try replacing your xerces from xalan 1.2.2 with a xerces 1.3.0 just to see if it changes something. This results in

RE: still having problems when invoking JUnitReport

2001-04-12 Thread Stephane Bailliez
I can already provide you with an alpha version, but you will be somewhat on your own here... I don't have much time for Ant right now unfortunately but I will do my best. Alpha sorting and some errors/failures coloring are missing and probably a few other minor bugs exists but this should

Re: still having problems when invoking JUnitReport

2001-04-12 Thread Ingmar Stein
Hope this helps. Okay, thanks for the help. I'll try that out. If you feel like to fix the bugs or enhance the xsl you're welcome. :) *grin* Let's see what I can do... Ingmar

Re: Running optional tasks

2001-04-12 Thread Diane Holt
--- [EMAIL PROTECTED] wrote: I downloaded Pvcs source compiled and put it into optional.jar, which is in %ANT_HOME%\lib. When I try to use pvcs / I get Could not create task of type: pvcs. Common solutions are to use taskdef to declare your task, or, if this is an optional

Suggestions or How To

2001-04-12 Thread Fred Welland
Hi, I have been using ANT for a while and have an intermediate working knowledge of ANT. This is would I would like to do. Enviro: iPlanet AppServer 6sp2 (iAS) WinNT / Solaris ANT 1.3 March 2 2001 Various JDKs but mainly 1.22 and 1.3 During hardcore development I would like to use a target

Re: Delete fails...

2001-04-12 Thread Brian Murray
Could be a couple of simple causes which I've discovered by beating my head against a wall: 1. Command prompt window open with the current directory == ${archive} (or one of its subdirs) 2. Windows explorer open and the currently selected folder == ${archive} Point 2 doesn't seem to happen

RE: Subproject builds and a master build

2001-04-12 Thread Jim Jackl-Mochel
Title: Subproject builds and a master build I'm working on a project that has a large number of dependent projects. we added up defining atop level build directory at the level above the dependent projects. all of the dependent project's ant Files include anentity reference to the

junit task def

2001-04-12 Thread Nathan Coast
Hi, I'm using the optionaly JUnit task from within a build script to run tests as part of the build process. The problem is that various system properties need setting for the code to execute successfully. Normally these would be set using the -D option. Is it possible to set these

RE: adding class-path to manifest

2001-04-12 Thread John Kohler
I've developed a task that will create a jar from a set of 'root' classes, including all dependant classes along with other arbitrary files. Moreover, you can specify the content of the manifest file directly in the build.xml, e.g.: genjar jarfile="theJarFile.jar" class name="foo.bar.Main"

arg line

2001-04-12 Thread Pinar Bicioglu
exec dir="${build-dir}" executable="attrib.exe" arg line="-r ${fileName}" / /exec Could anybody tell me what does the middle (arg line="-r ${fileName}" /) line do? Thanks

RE: arg line

2001-04-12 Thread Joe Fisher
open a dos box and type attrib /? The -r turns off the read-only attribute of a file -Original Message- From: Pinar Bicioglu [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 8:10 AM To: '[EMAIL PROTECTED]' Subject: arg line exec dir="${build-dir}" executable="attrib.exe"

RE: pulling out the code from SourceSafe

2001-04-12 Thread Shannon Wagner
You need to use the "vssget" task. The documentation is available here: http://jakarta.apache.org/ant/manual/OptionalTasks/vssget.html It's an optional task, so you'll need to make sure you've included "optional.jar" in your Ant installation. You can download "optional.jar" here if you don't

RE: pulling out the code from SourceSafe

2001-04-12 Thread Pinar Bicioglu
Does it matter where to install "optional.jar" ? -Original Message- From: Shannon Wagner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: pulling out the code from SourceSafe You need to use the "vssget" task. The documentation is

RE: pulling out the code from SourceSafe

2001-04-12 Thread Shannon Wagner
I would put it in the same directory as "ant.jar". -Original Message- From: Pinar Bicioglu [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 10:46 AM To: '[EMAIL PROTECTED]' Subject: RE: pulling out the code from SourceSafe Does it matter where to install "optional.jar" ?

RE: adding class-path to manifest

2001-04-12 Thread Marc Portier
John, looks great, will try out. guess this covers more then the running question of this thread quite sure this is usefull is this in the optional packages in any near future? or does this run as a feature preview for some next jar task? -marc= -Original Message- From: John Kohler

RE: adding class-path to manifest

2001-04-12 Thread John Kohler
is this in the optional packages in any near future? or does this run as a feature preview for some next jar task? This would depend upon the "powers", I guess. I'd certainly like to see it included somewhere... Lemme know how it works for you - and bugs of course. jk

Accessing environment variables

2001-04-12 Thread Jim Downing
Hi. I'm a complete Newbie to Ant. I'm trying to construct a simple ant build file to replace the script based approach I was using. Is it possible to access OS environment variables (such as JAVA_HOME) as properties in build.xml, or do you have to re-specify them fully as properties in

RE: Accessing environment variables

2001-04-12 Thread Eric Rosengren
There are many better examples in the achieves of this newgroup, but here's what I do. property environment="env" / property name="javapath" value="${env.JAVA_HOME}"/ You don't have to use the string "env". You can call it anything you'd like. -Original Message- From: Jim Downing

RE: Accessing environment variables

2001-04-12 Thread Nicolas LEHUEN
Hello, Use the property task with the environ attribute : http://jakarta.apache.org/ant/manual/CoreTasks/property.html Regards, Nicolas -Message d'origine- De : Jim Downing [mailto:[EMAIL PROTECTED]] Envoye : jeudi 12 avril 2001 17:17 A : [EMAIL PROTECTED] Objet : Accessing

RE: junit task def

2001-04-12 Thread KC Baltz
Yes. junit supports nested jvmarg elements. Look at the docs for java if the junit docs don't cover jvmarg Here's an example: junit blah="blah" jvmarg value="-Dtrace=true" / /junit -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001

makefile dependencies

2001-04-12 Thread Brooke Wallace
Hi, A friend of mine pointed out your project because you are working on an make like environment to build java code. We are also building java code and have a very complex, very automated build environment that uses a varient of GNU make. The problem that we have encountered, that I would

environment variables

2001-04-12 Thread Scott_Carter
Is there a way to get the value of environment variables and perform certain actions based on certain values? thanks - Scott

Runing ant in Solaris

2001-04-12 Thread Jose Fernandez
Hi: I have been trying to run ant in solaries but i get: Warning: JAVA_HOME environment variable is not set. If build fails because sun.* classes could not be found you will need to set the JAVA_HOME environment variable to the installation directory of java. Buildfile:

RE: environment variables

2001-04-12 Thread Stephane Bailliez
Take a look at the documentation: http://jakarta.apache.org/ant/manual/index.html - task property (environment attribute) - task available - target conditional execution (if/unless attributes) -- Stphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com

RE: How to get both .txt and .xml JUnit reports

2001-04-12 Thread Stephane Bailliez
Use 2 formatters. One "plain" another "xml". -- Stphane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. -Original Message- From: Steve Donie

Classpath

2001-04-12 Thread Jim Downing
Apologies for being stupid here - I'm trying to get a javac task to have a classpath that points to a jar file that isn't in the build base directory. The location of the jar is in a path specified by an environment variable. Is it possible to get a fileset to point to this environment

Classpath

2001-04-12 Thread Jim Downing
Apologies for being stupid here - I'm trying to get a javac task to have a classpath that points to a jar file that isn't in the build base directory. The location of the jar is in a path specified by an environment variable. Is it possible to get a fileset to point to this environment

Build Failure

2001-04-12 Thread Kairam, Raj
I am trying to install and build Tomcat on a HP-UX 11.0 Box without any success. This is the environment I am working with. HOME=/ JAKARTA_HOME=/opt/jakarta JAVA_HOME=/opt/java1.3 APACHE_HOME=/usr/local/apache TOMCAT_HOME=/opt/jakarta/dist/tomcat

RE: Classpath

2001-04-12 Thread Peterson, Lance
Title: RE: Classpath Jim, I think you need to specify the full path to the j2ee/lib directory in your fileset. The path attribute in your classpath element does not set a base path for nested elements. Thus classpath path=${j2ee_home} fileset dir=lib / include name=j2ee.jar / /fileset

wlrun - Intended use

2001-04-12 Thread Andrew Goodspeed
I am new to Ant, and am looking at using it as part of the deployment process, specifically from JBuilder to WebLogic. I expect to eventually use AntRunner to accomplish this, but I am trying to gain an understanding of Ant and get things working directly before I add another tool to the mix. I

Re: Accessing environment variables

2001-04-12 Thread Glenn McAllister
Jim Downing wrote: Hi. I'm a complete Newbie to Ant. I'm trying to construct a simple ant build file to replace the script based approach I was using. Is it possible to access OS environment variables (such as JAVA_HOME) as properties in build.xml, or do you have to re-specify them

RE: pulling out the code from SourceSafe

2001-04-12 Thread Dana Rice
why when you get a listing of the optional.jar there is no vssget but there is a MSVSSGET? -Original Message- From: Shannon Wagner [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 8:55 AM To: '[EMAIL PROTECTED]' Subject: RE: pulling out the code from SourceSafe I would put it

Re: Runing ant in Solaris

2001-04-12 Thread Peter Donald
At 12:25 12/4/01 -0400, Jose Fernandez wrote: when I type echo $JAVA_HOME in the comand window i get the correct location for JAVA_HOME. Any sugestions this may sound stupid but have you exported the variable (ie export JAVA_HOME in bourne shell environments). Cheers, Pete

Re: Delete fails...

2001-04-12 Thread David Corbin
Your idea makes sense, but that's not it... Brian Murray wrote: Could be a couple of simple causes which I've discovered by beating my head against a wall: 1. Command prompt window open with the current directory == ${archive} (or one of its subdirs) 2. Windows explorer open and the

Re: Delete fails...

2001-04-12 Thread Diane Holt
--- David Corbin [EMAIL PROTECTED] wrote: I tried that, and I tried NTHandle | grep junit. Nothing is holding the file open. It *seems* like that cygwin rm also fails (silently) to delete it, but DEL frequently (if not always) succeeds. More ideas? I take it you've tried rebooting? :)

RE: environment variables

2001-04-12 Thread N. J. O'Neill
But there doesn't seem to be a way to control execution of a target based on the value of a property. For example, I want to have a target that only executes if the OS is "SunOS". I can't see a way to use either the 'property' task or the 'available' task to set a property based on whether

Re:FileSet

2001-04-12 Thread Francisco Franco
I need to pass several source files to javadoc's sourcefile directive by using a regular expression. I get the following error for the xml code: javadoc packagenames="com.powermarket.*" docletpath="c:/cygwin/home/ffranco/ejben/ejbgen.jar" doclet="EJBGen"

RE: environment variables

2001-04-12 Thread Shannon Wagner
I haven't seen an obvious way to do this sort of thing yet. I haven't tested the sample below, but I think something along these lines would work, if you can't find anything more direct. ... property environment="env"/ !-- Create a file with the same name as the OS. -- echo message="os"

Re: Newbie question

2001-04-12 Thread BalaSubramanian
Hi santosh ?xml version="1.0"? project name="Test" default="compile" basedir="." (2) (missed beginning target stmt ) property name="src" value="."/ property name="build" value="bin"/ property name="classpath" value="..\sdktest.jar"/ --(1) (missed closing target stmt) target