Hello,
Brian Kuhn wrote:
Has anyone gotten the SCP task to work correctly? I need to copy a
single file from a server to my local machine using SSH. Does anyone
have a working example?
I am using SCP to update a website: I scp a .tgz file of the
modifications and then extract it with
USE the following modifications. it should work
excludes=rex/rexml/*.classes
nop
a) *.classes catchs only files directly under rexml -- use
rex/rexml/**/*.classes
b) I think you mean **/*.class ...
Jan
-
To unsubscribe,
Just another point - your two tar-commands are nearly the same. You could
extract a macrodef:
macrodef name=createtar
attribute name=tarfile/
attribute name=distjar/
attribute name=distrib default=${distrib}/
sequential
tar tarfile=@{tarfile}
tarfileset
added
Jan
-Ursprüngliche Nachricht-
Von: Dan Prince [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 8. August 2005 06:36
An: user@ant.apache.org
Betreff: PesterCat Ant Toolkit : New addition to external
tools and tasks
PesterCat Ant Toolkit.
Description: PesterCat is a web testing tool
you have to include the jars inside your path, not the directory.
target name=main
java classname=Test
classpathfileset dir=. includes=*.jar//classpath
/java
/target
Jan
-Ursprüngliche Nachricht-
Von: nathan le [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 8. August 2005
Hi Steve,
Great presentation!
I had a couple of thoughts after going through the presentation. I
wrote about those at my blog:
http://www.pankaj-k.net/archives/2005/08/ant17_for_build.html
Thanks,
Pankaj Kumar.
On 8/4/05, Steve Loughran [EMAIL PROTECTED] wrote:
List subscribers may be
Hi Ant-users!
I've checked the Directory-based Tasks page and googled the web to find
any solution to my problem, without success.
E.g. I have a dir tree like this:
/lib
|- jarlibname1
| |-file1.jar
| |-file2.jar
|- jarlibname2
|-file3.jar
|-file4.jar
What I
Hi,
you can check the flatten attribute of copy, or also the flatten mapper.
Nicolas
Sándor Tamás wrote:
Hi Ant-users!
I've checked the Directory-based Tasks page and googled the web to
find any solution to my problem, without success.
E.g. I have a dir tree like this:
/lib
|-
http://ant.apache.org/manual/CoreTypes/mapper.html#flatten-mapper
Jan
-Ursprüngliche Nachricht-
Von: Sándor Tamás [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 9. August 2005 10:41
An: user@ant.apache.org
Betreff: howto include files only - without dirtree
Hi Ant-users!
I've checked
Thank Jan and thanks Nicolas! Flattenmapper is great!
One more question: can I use it in a war/war element somehow to have
lib/lib the flattenmapper/ or shall I copy all my jars with
flatten=true and then specify lib dir=flattenedJarDir/?
flattenmapper/ and mapper/ are not allowed in war/,
Hi all,
I'm trying to achieve this simple task:
I want to copy files to my jboss deploy dir.
The deploy dir is generated automatically every server start/deploy and get the
following name pattern:
XMyAppName.war
now i want to copy files from c:\aaa into the above
Thanks for the response, Rob (sorry, been on holiday for the last week).
Have uninstalled an existing version and this hasn't fixed the problem.
The install may be causing the problem, though, since I didn't use rpm to
install ANT - I just copied over an existing install that worked on
Just thoughts:
- create a fileset from the jboss directory including your deploy-dir
-- use selectors to get the newest one
- use pathconvert to get the target location
- use that property as todir for copy
Jan
-Ursprüngliche Nachricht-
Von: Nir Geier [mailto:[EMAIL PROTECTED]
can u show a code sample please?
i have no idea on how to do it.
ty very much for your help.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 12:13 PM
To: user@ant.apache.org
Subject: AW: Copying files to unknown folder name (jboss war
flattenmapper
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Sándor Tamás [EMAIL PROTECTED]
08/09/2005 04:40 AM
Please respond to
Ant Users List
To
user@ant.apache.org
cc
Subject
howto include files only - without dirtree
Sorry bad example
What I am trying to include a jar that holds a java
logging handler
I am trying to use java logging on the ant build
process
I created a listener that uses java logging and have
configured the logging system to use a custom handler
that is included in a jar
I seem to be
NB, out of curiosity, I've now also tried using the scp function in place
of the ftp one; again, this doesn't work, although this time, the build
just grinds to a halt - nothing is copied and the command doesn't come to
an end. Seems to me there's something fundamentally wrong with the box...
Hello all,
I need to zip a the contents of a folder on Mac OSX (10.[3|4]) Unfortunatly
permissions are broken (executables are no longer executable) after I unpack my
zipped components and empty directories are gone. This breaks my deliverables.
If I call zip on the command line I have no
At the top of the zip task definition, it says this:
Note that file permissions will not be stored in the resulting
zipfile.
If you need to store permissions, try tar or exec to use zip.
On Aug 9, 2005, at 9:40 AM, [EMAIL PROTECTED] wrote:
Hello all,
I need to zip a the contents of a
Thx. jacques
At the top of the zip task definition, it says this:
Note that file permissions will not be stored in the resulting
zipfile.
If you need to store permissions, try tar or exec to use zip.
On Aug 9, 2005, at 9:40 AM, [EMAIL PROTECTED] wrote:
Hello all,
I need to zip a the
If you need to preserve existing permissions then it's probably easiest to
use exec to run the native zip/tar on your platform.
If you only need to set permissions on certain files then you can use a
nested zipfileset to manually set permissions on those files in the
archive.
Given that Java
Hi Folks,
I want to set a property to the value of an environment variable if
that variable is set, otherwise to a different string.
I am able to do this with the following:
property environment=env /
property name=test.home.0 value=${env.TEST_HOME}/
condition
Hi ,
I just want to clarify a few things.I am trying to compile a few java
files in my ant build script using a classpath variable to point to required
libraries.I tried the approach below.I tried to define my classpath in
properties and then used them in javac, but that doesnt seep
I would like to zip the contents of a folder in unix and copy them to a
mapped drive under windows. What is the right syntax of doing this ?
Eager to see the suggestions or pseudo code to accomplish this.
Thanks
srikrishna
You need something like the following to define the classpath:
!-- A class path for the Java compiler. --
path id=classpath.compile
fileset dir=./${build.pkg}
include name=**/*.class/
/fileset
fileset dir=./${src.lib}
include name=**/*.jar/
include name=**/*.zip/
/fileset
please do not include .class files in the class path.
Peter
Bill Rich wrote:
You need something like the following to define the classpath:
!-- A class path for the Java compiler. --
path id=classpath.compile
fileset dir=./${build.pkg}
include name=**/*.class/
/fileset
fileset
hello Kumar,
this is another alternative for the same :
property environment=env/
property name=env.TEST_HOME value=TO_BE_REPLACED/
might work.
Cheers,
Antoine
- Original Message -
From: Pankaj Kumar [EMAIL PROTECTED]
To: user@ant.apache.org
Sent: Tuesday, August 09, 2005 4:41 PM
Hello Sándor,
it looks like you need to do the copy.
Antoine
- Original Message -
From: Sándor Tamás [EMAIL PROTECTED]
To: Ant Users List user@ant.apache.org
Sent: Tuesday, August 09, 2005 11:17 AM
Subject: Re: AW: howto include files only - without dirtree
Thank Jan and thanks
Using the if task (from the ant-contrib project) you
can do it like this:
if
isset property=env.TEST_HOME/
then
property name=test.home
value=${env.TEST_HOME}/
/then
else
property name=test.home
value=TO_BE_REPLACED/
/else
/if
Though I am not
This will trim down the previous post
property name=test.home value=TO_BE_REPLACED/
if
isset property=env.TEST_HOME/
then
property name=test.home value=${env.TEST_HOME}/
/then
/if
-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09,
The second property will not work, because the property is already set
earlier. You may want to execute them in reverse order.
- Alexey.
[EMAIL PROTECTED] wrote:
This will trim down the previous post
property name=test.home value=TO_BE_REPLACED/
if
isset property=env.TEST_HOME/
Sorry, was thinking of NAnt
-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 1:09 PM
To: Ant Users List
Subject: Re: How to test whether a particular environment variable is
set or not
The second property will not work, because
On 8/9/05, Antoine Levy-Lambert [EMAIL PROTECTED] wrote:
this is another alternative for the same :
property environment=env/
property name=env.TEST_HOME value=TO_BE_REPLACED/
Hi Antoine,
This works. It is also more compact and elegant (compared to my
version). Thanks.
/Pankaj.
-
There are many options to accomplish this. Check out the manual pages for the
copy, scp, ftp and zip tasks.
-Rob Anderson
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 8:11 AM
To: user@ant.apache.org
Subject: Copy Question -
Copying the ant installation from another machine should be fine. Ant is
platform independant and self contained within $ANT_HOME, so this should work
fine. Check to make sure you have the dependant jars in $ANT_HOME/lib. See the
dependency section of the manual to find out what dependencies
Thank you .It works
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I have developed a build system architecture which uses one common,
generic build.xml file to build each module in the project. This build
file can then recursively call itself with a different basedir to build
modules upon which the current module depends (dependencies are
configured in a
Dear,
I have the following part of a build file :
path id=build.path
pathelement location=${lib.dir}/jfreechart-1.0.0-rc1.jar/
pathelement location=${lib.dir}/gnujaxp.jar/
pathelement location=${lib.dir}/servlet.jar/
pathelement
I can't see anything amiss in your code, although the -- in your
description attribute did catch my eye :-).
It's better if you can show the actual error printed by Ant in most
cases and the corresponding line in your build. Ant usually includes
line numbers and these can help know where to look.
I would like to get the CVS sticky tag of the source I am compiling.
Anyone have a recipe to do that?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The only place where you have a dir is in
javac... src dir=${..}/ ...
The manual to javac sais :
javac's srcdir, ... attributes are path-like structures and can also be set
via nested src...
So src IS a path.
And paths doesnt support any (besides id/refid) attributes.
Use
src
41 matches
Mail list logo