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
-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
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
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
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
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
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
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
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
--- [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
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
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
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
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
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"
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
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"
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
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
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" ?
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
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
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
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
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
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
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
Is there a way to get the value of environment variables and perform
certain actions based on certain values?
thanks - Scott
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:
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
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
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
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
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
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
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
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
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
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
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
--- 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? :)
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
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"
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"
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
45 matches
Mail list logo