Shailesh Sharma | 1 Nov 2007 17:28
Picon
Favicon

RE: Problem with condition selection property; Help needed

I have figured out that this is happening because of fork=true  while deploying.
  I do not know the solution.

   

      <java classname="weblogic.Deployer" fork="true" maxmemory="256m" failonerror="true">

Shailesh Sharma <shailesh_scea <at> yahoo.com> wrote:
  Here is my build.xml

 [input]  validargs="y,n"
addproperty="user.selection"
/>

***** You have chosen not to deploy ${file}. *****


. 
.
.
.

Shailesh Sharma wrote:
I am still looking for a solution.

Iam using foreach task. and i loop through it and it ask Y/N as an input.

But if I select Y for the first input, for the second input, i have to press Y twice.

any solution so far on this?
(Continue reading)

Rob Wilson | 1 Nov 2007 19:52
Picon

Re: deploy task to Tomcat partially works

Hi Steve,

Thank you for the tips, for some strange reason the file never gets
created?! I have included verbose in the copy task, with the output I
copied+paste the source file and destination dir into explorer to confirm
the source file and destination directory exists...

I assume it's because of the c:/program files bit? -  I also have drive E on
my machine, if I remove c: it copies to e:/Program Files/Apache Software
Foundation/Tomcat 5.5/webapps ok.  So whats the format to force it to go to
c:.... ?

Cheers,
Rob.

<property name="local.tomcat.webapp.path" value="c:/Program Files/Apache
Software Foundation/Tomcat 5.5/webapps"/>

<property name="deploy" location="./deploy"/>

<property name="warfile" location="${deploy}/ciderbob-website.war"/>

<echo message="deploy-local - copying ${warfile} to ${
local.tomcat.webapp.path}..."/>

<copy todir="${local.tomcat.webapp.path}"

file="${warfile}"

failonerror="yes"
(Continue reading)

weiji | 1 Nov 2007 22:59
Picon
Favicon

How to figure out how Ant is invoked...


Hi,

We are using Ant in our build process to compile Java sources as well as run
a compiler for Adobe Flex.  The Flex part of our webapp handles the user
interface.  We noticed that running the Ant target from within Adobe's Flex
Builder IDE will generate output differently compared to running the Ant
target from a shell.

This difference is noticeable because it causes the browser to (apparently)
incompletely load the webapp.  The browser will show "Waiting for
http://localhost/tds/history.htm" on the status bar, and there are other
indications that the browser is waiting (favicon doesn't display, the tab
continues showing the animated load icon, the progress bar is incomplete).  

This issue only occurs when we execute the flex compilation from the shell
or via my IntelliJ IDE.  If we execute the same flex compilation target from
Adobe's Flex Builder 2 IDE, or from inside Eclipse, the issue does not
appear.

I have them all set to use the same installation of Ant, so I can only think
that somehow the different development environments are invoking Ant
differently.  Is there a way to check for this?

Thanks,
KaJun
--

-- 
View this message in context: http://www.nabble.com/How-to-figure-out-how-Ant-is-invoked...-tf4734328.html#a13538335
Sent from the Ant - Users mailing list archive at Nabble.com.
(Continue reading)

Saladin Sharif | 2 Nov 2007 01:51
Picon
Favicon

How to set an environment variable through Ant?

I am just curious whether there is a clean way to set environment variables through ANT.  You see, before
running my Ant script, I am currently setting my environment variables through a shell script, and I aslo
have a batch script version for when running Ant on windows.  I would like to get rid of the shell script /
batch script, and just set those environment variables directly in my Ant script (build.xml).  Is this
something possible with Ant?

Thanks in advance,
-Saladin

**********************************************************
* Saladin Sharif
* e-mail: al_zawiah <at> yahoo.com
* Visit homepage  <at>  http://gaia.ecs.csus.edu/~sharifs
**********************************************************

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Dick, Brian E. | 2 Nov 2007 02:17

RE: How do I filter a file of files

Thanks for the suggestion, but the scp task does not provide the
capabilities I need. The scp task does not support a "list" action and
does not support filesets on the remote host.

-----Original Message-----
From: David Weintraub [mailto:qazwart <at> gmail.com] 
Sent: Wednesday, October 31, 2007 6:56 PM
To: Ant Users List
Subject: Re: How do I filter a file of files

One of the optional tasks in the <scp> task. This does a secure FTP as
an ant task. I understand that there is some problem with IBM systems,
but you'll have to look in the archive. See
<http://ant.apache.org/manual/OptionalTasks/scp.html>.

You will need jsch.jar 0.1.29 or later for <scp> to work.

On 10/31/07, Dick, Brian E. <Brian.Dick <at> fmr.com> wrote:
> Let me state my problem, rather than my idea of a solution. Maybe that
> will pique your interest.
>
> I have a macrodef in my current build that uses the ftp task to get a
> list of files from a remote server. The macrodef has attributes for
> specifying the remotedir and patternset for the ftp task. Something
like
> the following.
>
> <macrodef name="rls">
>    <attribute name="remotedir"/>
>    <attribute name="patternset"/>
(Continue reading)

Tim Meals | 2 Nov 2007 05:39

Ant task to convert PNGs to GIFs?

I'm trying to create some website graphics through XSL transforms of an
SVG file.  Only problem is the Batik task just outputs PNGs, and not
GIFs.  Redoing the entire site to PNGs is not an option -- this should
be a transparent transition from using ImageReady templates to a
scripted solution that is usable by developers and is language localizable.

I have Batik's rasterizer task outputting PNGs now.  Does anyone know of
a pure Java Ant task that can transform those into GIFs?  I can do them
through ImageMagick, but would rather a cross-platform solution that
doesn't rely on any exec calls.

Thanks,
Tim
Ramu Sethu | 1 Nov 2007 08:37
Picon
Favicon

Clarification in xslt task

Hi all

We are using junitreport task in our project. it goes like this
<junitreport >
    <fileset dir="Result\etc" includes="TEST-*.xml">
     </fileset>
    <report format="frames" styledir="Result\etc" todir="Result">
    </report>
 </junitreport>

I need to use the same aggreated xml for another xslt transform
so i thought of using <xslt> task.
Had a look at check.xml in ant source code
and tried like this

<xslt in="Result\etc\TESTS-TestSuites.xml" style="Result\etc\junit-
frames.xsl"
 out="Result\etc\output.txt">
</xslt>
I was expecting the same output of junit report.... But i din get any out
put.
Trasformation got over in 3 secs. Only empty output.txt is created.
No html page is created.

Can anybody provide some help on this?

--

-- 
Thank you
Ramu S
(Continue reading)

Ninju Bohra | 2 Nov 2007 07:06
Picon
Favicon

Re: How to set an environment variable through Ant?

Hello,

For ANT task that spawn a seperate process (<javac> and <exec>
come to mind) there are attributes to allow you define 'environment variable' that will be applied to the
process that the task will run in.

The ANT Manual for these two tasks are quite helpful

Hope that helps,

Ninju

----- Original Message ----

From: Saladin Sharif <al_zawiah <at> yahoo.com>

To: user <at> ant.apache.org

Sent: Thursday, November 1, 2007 7:51:48 PM

Subject: How to set an environment variable through Ant?

 I am just curious whether there is a clean way to set environment  variables through ANT.  You see, before
running my Ant script, I am  currently setting my environment variables through a shell script, and I aslo 
have a batch script version for when running Ant on windows.  I would  like to get rid of the shell script /
batch script, and just set those  environment variables directly in my Ant script (build.xml).  Is this 
something possible with Ant?

Thanks in advance,

(Continue reading)

Jan.Materne | 2 Nov 2007 07:09
Picon

AW: Ant task to convert PNGs to GIFs?

1. cleanest solution: batik.GifRasterizer
   problem: not existent ? ;)
2. Ant-only workaround: <image> task
   problem: not sure if gif's and png's are handled ...
3. 3rd-party tool with Ant integration: <some:tool>
   problem: you need that tool and I dont any
4. 3rd-party tool without integration: <exec>
   problem: also need for the tool; invocation via <exec>
   hint: you should capsule the call in a <macrodef> for better readability of the buildfile

Jan

>-----Ursprüngliche Nachricht-----
>Von: Tim Meals [mailto:tim <at> codeknox.com] 
>Gesendet: Freitag, 2. November 2007 05:40
>An: Ant Users List
>Betreff: Ant task to convert PNGs to GIFs?
>
>I'm trying to create some website graphics through XSL transforms of an
>SVG file.  Only problem is the Batik task just outputs PNGs, and not
>GIFs.  Redoing the entire site to PNGs is not an option -- this should
>be a transparent transition from using ImageReady templates to a
>scripted solution that is usable by developers and is language 
>localizable.
>
>I have Batik's rasterizer task outputting PNGs now.  Does 
>anyone know of
>a pure Java Ant task that can transform those into GIFs?  I can do them
>through ImageMagick, but would rather a cross-platform solution that
>doesn't rely on any exec calls.
(Continue reading)

Jan.Materne | 2 Nov 2007 07:11
Picon

AW: How to figure out how Ant is invoked...

You could run Ant with -debug option. In Eclipse you can set this in the run-external dialog.

Jan 

>-----Ursprüngliche Nachricht-----
>Von: weiji [mailto:nabbleOp <at> hotmail.com] 
>Gesendet: Donnerstag, 1. November 2007 22:59
>An: user <at> ant.apache.org
>Betreff: How to figure out how Ant is invoked...
>
>
>Hi,
>
>We are using Ant in our build process to compile Java sources 
>as well as run
>a compiler for Adobe Flex.  The Flex part of our webapp 
>handles the user
>interface.  We noticed that running the Ant target from within 
>Adobe's Flex
>Builder IDE will generate output differently compared to 
>running the Ant
>target from a shell.
>
>This difference is noticeable because it causes the browser to 
>(apparently)
>incompletely load the webapp.  The browser will show "Waiting for
>http://localhost/tds/history.htm" on the status bar, and there 
>are other
>indications that the browser is waiting (favicon doesn't 
>display, the tab
(Continue reading)


Gmane