hi,
i'm putting together a simple business "flow" process. some zip files are
pulled from a vendor. i need a process to do the following, archive the
input, unzip the zip files, and execute some transformation on some of the
data.
currently, it's on a windows server, but we have linux servers i
> Something like that (untested) :
>
> value="update"/>
>replace=""/>
>
>
>
>
> Otherwise you can write your own ant task and make this task create
> either a patternset, a fileset, or a resource collection.
>
> Regards,
>
i'm using ant to build a project that has been checked out from cvs. i want
to run a task that uses a fileset of all files changed from cvs.
basically, i'm looking to run a source code formatter on the source files
and only want it to run on files that have changed from the version control.
than
s might get me around any classloader issues. I
then put xalan.jar into the classpath of my task, but that gave the
same results.
Maybe I was still running into classloader issues. I'd really like
to have a "working", standalone xslt task that allows me to specify
the xmlcatalo
i'm trying to use ant's xslt task on java 1.5.
Here's my target call:
And the exception is:
[xslt] Transforming into C:\dev\workspace-wtp-1.0\myProj\build\doc
select the rest of the string.
>
> HTH Bill
>
> -Original Message-
> From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 02, 2006 8:11 AM
> To: user@ant.apache.org
> Subject: propertyregex
>
> i want to set a property using propertyre
i want to set a property using propertyregex from ant-contrib. i'm not
a regex expert/novice.
here's my string:
Sticky Tag: REL_1_0 (branch: 1.3.2)
I'd like to extract the REL_1_0 (third word, or word after Sticky
Tag:) to a property. some help with the regexp of it would be
helpfull.
that's definately a great idea. how do i get the branch name of cvs
from within ant? basically, which cvs branch is this?
On 12/19/05, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Now, suppose I branch the project to create REL_4_1.
> > > > Development is still occurin
On 12/19/05, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote:
> > We're looking to attach a buildnumber to our current build process.
> > Only test and production builds will need to have the
> > buildnumber incremented.
>
> It's OK to increment the buildnumber for development builds too.
>
We're looking to attach a buildnumber to our current build process.
Only test and production builds will need to have the buildnumber
incremented. I've noticed the buildnumber task in ant and am curious
how others are using this task?
Working from the head, it would seem fairly simple:
- update t
i didn't quite catch the resolution to this. is there a solution to
using a stock ant distribution , without modifying your target
environment (ANT_HOME/lib, ~/.ant/lib, etc), and using the optional
tasks such as junit, scp, ftp, etc? if so, can someone give an example
of how to do this?
On 11/9
Jon,
This is a similar issue with the xalan classes in the 1.4 jdk.
they're exposed directly by sun (and other jvm's) as org.apache.*.
basically they just imported xalan and possibly other apache classes
into the jvm. this gives your entire application (jvm) one chance to
override the version u
i haven't used the two ejb 3.0 preview application servers out there, just
have heard a bit if the hype and skimmed over the 3.0 public draft. i could
find nothing regarding ejb jar changes in the draft per se, though it could
be as simple as just creating a standard jar file to deploy to the
conta
On 9/6/05, S I <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I wish there was Ant Core Task support for Subversion. I have downloaded
> bunch of 3rd party utilities, althought they accomplish the job somewhat
> clumsily, they'll do for now. Is there going to be support for Subversion
> soon?
I don't li
our build system is growing rapidly. we've gone from using wsad to build
each war/ear manually, to having ant scripts for building each item, and
wrapping it together with a main "autobuild" project which basically checks
out each sub project and calls it's build. now we're looking to integrate
junit.jar needs to be in ant/lib or ~/.ant/lib (iirc), or in the system
CLASSPATH env var.
alternatively, you can repackage the ant junit supplied task to be in a
different namespace/package than the ant supplied one. (for example,
external.org.apache...). this will let you package the junit.ja
ant script task with javascript is what i'd go for..
On 8/23/05, Barry White <[EMAIL PROTECTED]> wrote:
>
> Have you looked at writing cutom ant tasks? It maye help to handle some
> of the messier details.
>
> Barry
>
> Scott Bell wrote:
> >
> >
> > Problem statement:
> >
> > I have a number of
keys should never move. They are specific to a [EMAIL PROTECTED]
>
> You need to get key authentication working from the command line first.
> Please read the ssh documentation to understand public key authentication
> and how to set it up.
>
> -Rob A
>
> > -O
it's
still unable to find the key.
localmachine (trying to connect to remotemaching using a key):
C:/myfolder/build.xml
C:/myfolder/id_dsa
C:/myfolder/id_dsa.pub
remotemachine (where the key was generated):
~/.ssh/id_dsa
~/.ssh/id_dsa.pub
On 8/19/05, Steve Loughran <[EMAIL PROTECTED]>
i'm trying to use sshexec with a keyfile. i generated a key on the remote
server using the ssh-keygen -t dsa. this gave me a ~/.ssh/id_dsa and
~/.ssh/id_dsa.pub. i pulled the id_dsa.pub file to the remote machine from
where i want to run the sshexec task. i put the file into the
and ant
i've looked around a bit and don't seem to find any good ways to use an
encrypted text with an ant task. ideas/suggestions? basically, i don't want
to store a plaintext password for a userid on a remote host in my ant build
script. i'd like to have an encrypted form of the password somehow.
autodeploy\build.xml:570: taskdef A class needed by class
> org.apache.tools.ant.taskdefs.optional.ssh.SSHExec cannot be found:
> com/jcraft/jsch/UserInfo
>
>
> On 8/16/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
> >
> > i have both jsch.jar and ant-jsch.ja
f A class needed by class
org.apache.tools.ant.taskdefs.optional.ssh.SSHExec cannot be found:
com/jcraft/jsch/UserInfo
On 8/16/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
>
> i have both jsch.jar and ant-jsch.jar in mylibfolder, but i don't see that
> i've tied the xmlns:my etc to my ant-js
EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> sure - see http://ant.apache.org/manual/install.html#librarydependencies
>
> Jan
>
> >-Ursprüngliche Nachricht-
> >Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> >Gesendet: Dienstag, 16. August 2005 16:2
very interesting!
i created an antlib.xml file in mylibdir/antlib.xml
also mylibdir/ant-jsch.properties
scp=org.apache.tools.ant.taskdefs.optional.ssh.Scp
sshexec=org.apache.tools.ant.taskdefs.optional.ssh.SSHExec
and build.xml:
...
wrote:
>
> >what would be really nice is if there
i'm interested in using some of the ant optional tasks without distrubing
the ant-lib folder. basically, i want to provide all the needed jars as part
of my tools area, and not have each machine that runs the bulid have to
update it's ant/lib folder. the current task i'm after is the scp task. b
operty
> - use the result-property instead of \5 in
>
> Jan
>
> >-----Ursprüngliche Nachricht-
> >Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> >Gesendet: Montag, 15. August 2005 17:10
> >An: Ant Users List
> >Betreff: Re: regexpreplace help...
> >
one other thing, here's my regex mapping.
on the replace item 5 (\5), i'd like to increment the number by one. can i
do this?
On 8/15/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
>
> thanks, it is indeed in the manual.
>
> On 8/15/05, [EMAIL PROTECTED] &
thanks, it is indeed in the manual.
On 8/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> The manual shows how to get the back-references...
>
> Jan
>
> >-Ursprüngliche Nachricht-
> >Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> >Gesend
>-Ursprüngliche Nachricht-
> >Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> >Gesendet: Montag, 15. August 2005 14:25
> >An: Ant Users List
> >Betreff: regexpreplace help...
> >
> >I'm not much of a regex person, and maybe there's an easier
> >w
I'm not much of a regex person, and maybe there's an easier way to
accomplish this.
I've got an apache config file for using url rewriting. The rewrite rules
look something like:
RewriteRule ^/apps/MyApp/(.*)? /MyApp/1.0.62/a/$1 [R]
RewriteRule ^/apps/MyNextApp/(.*)? /MyNextApp/1.0.62/a/$1 [R]
Team Lead
> WebSphere Build Tooling Lead (Project Mantis)
> https://w3.opensource.ibm.com/projects/mantis
>
>
> Mark Lybarger <[EMAIL PROTECTED]> wrote on 07/19/2005 02:39:44 PM:
>
> > is it possible to set the ANT_OPTS inside the build.xml? or a property
> file
&
is it possible to set the ANT_OPTS inside the build.xml? or a property file
perhaps?..
On 7/19/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
>
> that works nicely, thanks a bundle.
>
> On 7/19/05, Jeffrey E Care <[EMAIL PROTECTED]> wrote:
> >
> > -D options
options to the VM.
>
> --
> Jeffrey E. Care ([EMAIL PROTECTED])
> WebSphere Build SWAT Team Lead
> WebSphere Build Tooling Lead (Project Mantis)
> https://w3.opensource.ibm.com/projects/mantis
>
>
> Mark Lybarger <[EMAIL PROTECTED]> wrote on 07/19/2005 12:43:04 PM:
>
>
i've got an ant build script. our "default" jdk is IBM jdk 1.4.2. our web
app requires a specific version of xalan.jar to build. we can build just
fine on intel box by specifying sun's jvm. when deploying to jboss we use
the endorsed.dirs to use our xalan.jar, and can run ok under IBM's jvm. i
i'm trying to get an uptodate task working. i'm pretty sure i've got the
mapping wrong. my setup is:
Web Content/behavior/*.xml
Web Content/behavior/compiled/*.xml
I need to see if any files in the first folder are newer than their matching
file in the "compiled" folder.
files.uptodat
p
> properties.
> and one with a prefix of end.
> Then you can use ${start.BUILD_TIMESTAMP} and ${end.BUILD_TIMESTAMP}
>
> > -Original Message-
> > From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 14, 2005 7:24 AM
> > To: Ant Users L
i'm wondering if there's a way to use the junit task without having to put a
junit.jar into the ant/lib folder? can i use a taskdef and define the junit
task externally?
look at their performance monitor:
> http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html
>
> > -----Original Message-
> > From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 14, 2005 6:43 AM
> > To: Ant Users List
> >
I currently have a macro definition like so:
http://compiler.run.classpath.id>">
Completed Compile of @{projectDir} At: ${BUILD_TIMESTAMP}
the issue is that when i call it twice, i get the same time stamp output.
this is b/c properties are immutable. it'd be nice to be able to time
I've got a macrodef, and am calling it as you mentioned, I just can't seem
to figure out how to conditionally call the subant only if hte file
exists...?
On 7/5/05, Juergen Hermann <[EMAIL PROTECTED]> wrote:
>
> On Tue, 5 Jul 2005 10:29:34 -040
a filelist is ordered, a fileset is selective but non-ordered. i'd like to
combine features of each, either an ordered fileset, or a selective filelist
(don't include non-existant files).
in the example build.xml shown here, the default target doesn't work because
there is no baz.xml, but the d
hyphens work quite well for target names. I would guess underscores will
also work. one trick to having a target that you don't want to be called
directly is to name it with double hyphens. for example:
i hadn't though about quoting the argument, but the shell doesn't like to
run :
ant -
i just got the cvschangelog working to give me a report of cvs changes. i
used the examples in the manual to get it started. it seems to only work on
one repository at a time (dir="" attribute). is it possible to use multiple
dir's to give a report of multiple repository locations? in cvs we hav
the output property contains more than i'd like. how can i "substring" the
output?
On 5/26/05, Dominique Devienne <[EMAIL PROTECTED]> wrote:
>
> How about ? --DD
>
i have a java class that i can execute from an ant script. the class takes
one string argument and writes to system.out an encrypted version of that
argument. i'd like to capture in ant the output that is written to
system.out to an ant property. how can i do this?
thanks!
we have 10 or so web projects, each with their own build.xml, and one main
builder project that builds all projects. the main build project explicitly
specifies the deployment components, and the projects to build such as:
it's not very clean certainly, as adding a new proj
is there an example for using the waitfor task (or is there something else i
should use?) to wait till a server has shutdown/stopped listening to a
particular port?
thanks!
is there a way i can take a fileset and output the contents (ls type listing
w/ timestamp of file) to a file?
thanks!
does anyone have ant tasks (using java task) to start/stop jboss 4.0.0?
i found the following:
http://pgmjsd.buzzword.com/stories/storyReader$143
but the shutdown doesn't seem to recognise my configuration. i'm running on
port 1199 (since something else is taking my port 1099 on win2k), and jbo
I've not had good experience myself using the wl supplied ant tasks, due to
this and the fact that the tasks seem limited. I used ant's java task to run
the wldeployer, etc to accomplish what the weblogic tasks provided.
I don't know what type of licensing these tasks have on them, but I'd
sugg
have you looked at the taskdef ? it's a typedef and as such takes a
classpath
On 4/12/05, Michael Pelz Sherman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm writing a custom Ant task that has dependencies on our custom
> libraries.
>
> Is there some way I can define or code the task so it can ta
> encodings.
>
> JEC
> --
> Jeffrey E. Care ([EMAIL PROTECTED])
> WebSphere Build SWAT Team Lead
> WebSphere Build Tooling Lead (Project Mantis)
> https://w3.opensource.ibm.com/projects/mantis
>
> "Dominique Devienne" <[EMAIL PROTECTED]> wrote on 04/11/200
is there a way using ant to convert a folder full of ascii text files into
ebcdic files? we're pulling cvs on a linux box and want to be able to build
the ear for deployment on zos. for some reason, some of the files _have_ to
be ebcdic encoded files. i think the issue is that the ebcdic files a
Are you using the bea supplied ant tasks or using java interfaces
(weblogic.Server, weblogic.Deployer, etc)?
We're currently tracking down some subtle issues (though they are cross
platform issues) which helps to identify by using ant.
> -Original Message-
> From: [EMAIL PROTECTED] [m
we have a project that consists of an ejb module and a web module. the ejb
module uses some 3rd party jars that are made available in the ear via the ejb
jar's manifest.mf. our current practice and setup is to put all jars into our
project sources's WEB-INF/lib folder. when building the ejb modu
yes, i get these, annoying.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 19, 2004 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: Annoying messages
>
>
> Does anybody else get message like that?
> IMHO if someone is registered to a list he
is it possible to use waitfor or some other task to see if a server/port has
been closed?
we're using this to wait for the server to be up before we deploy components to
the server, but would like to also identify if something went wrong during
shutdown.
there is a task, and i'm looking into adding timestamping into it.
> -Original Message-
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 05, 2004 9:53 AM
> To: Ant Users List
> Subject: RE: uptodate usage
>
>
> > From: Mark L
i'm trying to determine if a set of target files are current compared to a source xsd
file. can i use uptodate to accomplish this? i have an xml schema, myschema.xsd,
which is used by castor to generate some classes. i only want to run the generation
if the schema has changed.
uptodate see
I haven't done much CGI, but I assume this is on a web server? You can use the ant
get task to hit the script. If you want to validate what the script returns, you
might want to look into something like HttpUnit and friends. Very nice to validate
web sites.
> -Original Message-
> Fro
i've got a custom task that is currently extending the MatchingTask. this task
generates some source code based on an xml file. my trouble is that it generates the
source code every time, even when the base xml file hasn't been changed since the
generated source files.
does anyone know of a
you need compatible version of bsf to use script.
> -Original Message-
> From: Gareth Kelly [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 02, 2004 8:33 AM
> To: 'Ant Users List'
> Subject: RE: Ant Get FileSize using exec?
>
>
> Using the below example I get this error:
>
> BUILD F
RELEASE_FILE_SIZE=$(ls -l /path/to/file/filename|(read perms num_hd_links user group
size rest; echo $size) )
here's the bash version that we use on solaris which sets the var on the left to the
size of the file.
> -Original Message-
> From: Gareth Kelly [mailto:[EMAIL PROTECTED]
> Sent
i keep core optional tasks (ftp, junit) in the ant lib folder, and keep 3rd party
tasks (xdoclet, cactus, castor, etc) as part of my application.
> -Original Message-
> From: Barnes, Michael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 2:17 PM
> To: '[EMAIL PROTECTED]'
>
validation
>
>
> 1) try using regexps for validation
> 2) access is via ${MAJOR} - you´ve forgotten the curly braces
>
> Jan
>
> > -Ursprüngliche Nachricht-
> > Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Gesendet am: Mittwoch, 27. Oktober
is numeric:
found property $MAJOR
> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 27, 2004 7:19 PM
> To: Ant Users List
> Subject: Re: property validation
>
>
> Mark Lybarger wrote:
>
> > i'd l
i'd like to validate some properties in my build file. we have version numbers
specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric
(preferably 2 digits or under). does anyone know how i can possibly use ant's script
(javascript) or something else to validate this?
than
i'm looking for an ant task that'll do something similar to VMS's file versioning.
when putting a new file out, i'd like to have the old one still there (perhaps with
the ability to specify how many old versions to keep). does something like this exist?
here's my specific issue: when deploying
ods for build and deployment in
> weblogic and jboss servers?
>
>
> Which ant tasks are you using to deploy to weblogic?
>
> -----Original Message-
> From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 20 October 2004 13:23
> To: Ant Users Li
we use ant for building and deploying to weblogic. we have a fragmented process. one
build process to build an archive for deployment which is sent (via ftp) to a holding
area. there's quite a few steps in there, but basically, it's pull from cvs, compile
the code, build the ear and web app, a
slightly OT, but i'm using the ant java task, and setting the -Xms and -Xmx parameters
t the jvm. i've typically seen the parameters represented as a "power of 2" number,
32, 64, 128, etc. is there any logic/reason to specifying power of 2 numbers, or is
using 100, 200, 300 just as good?
You can look into ant's script task to facilitate this type of "complicated" logic.
In the javascript (if you choose) you can check values of properties and then choose
the route of execution. There's probably ant contrib tasks also for handling if
conditions based on the value of a property.
my guess is that soscmd is not in the path.
> -Original Message-
> From: Gareth Kelly [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 14, 2004 10:30 AM
> To: '[EMAIL PROTECTED]'
> Subject: Ant build script using sosget
>
>
> I am trying to connect to VSS from Solaris. I have installe
param.setName("msg");
param.setValue("test");
antcall.perform()
]]>
i found a good article on:
http://www.javaranch.com/newsletter/200312/ScriptingAnt.html
> -Original Message-
> From: Mark Lybarger
> Sent: Friday, October 01, 2004
is is as good as your java program
How can i call out to an target passing in a property of the filename
here?
>
>}
> }
>
> ]]>
>
>
> thanks,
> Murali
>
> -Origin
Re: ant script task examples
>
>
> As per:
> http://ant.apache.org/manual/install.html#librarydependencies
> You need to use rhino 1.5r3
>
> Peter
>
> Mark Lybarger wrote:
>
> >there is a good example in the docs for working with
> filesets via "javascript
>
>
> Have you tried the Ant manual? There are several examples in
> there. See
> http://ant.apache.org/manual/index.html. Click on 'Ant Tasks'
> in the index,
> then click on 'Optional Tasks', then click on 'Script'.
>
> Rhino
>
&g
does anyone know where some examples of using the ant script task can be found? i'm
looking to use a simple script which iterates over each file in a directory and calls
another ant task passing in the filename.
thanks!
~mark
is there a way to only run junit tests (via the ant task) when tests and or their
dependant classes have changed? our project is starting to get a large amount of tests
and it's consuming a bit of build time.
tia
~mark
-
To uns
e jar:
${manifest.class.path}
> -Original Message-
> From: Mark Lybar
81 matches
Mail list logo