I have installed 64 bits RHEL. I have following questions regarding ant.jar for the system.
I was not able to find ant.jar build with 64 bit JVM from the apache website. Do I have to build it form the source code, if I intend to run the jar on 64 bit JVM?
Would it speed up the build process if I use ant.jar build with 64 bit JVM and ru...
Out project uses WebLogic as web-server and uses mostly JSP for user interface. With standard setup it is possible to copy edited JSP files into the exploded deployment directory and WebLogic will automatically pick them up, recompile and serve new content through HTTP. However, is it possible to avoid copying at all, so that I just sa...
Can anybody help me with this?
I prefer if I don't have to explicitly list the table names.
...
What is the best way to restore a SQL Server database on our testing server from a snapshot taken in production. Database is running on Windows Server 2003 with SQL Server 2008
We are using Bamboo along with Ant scripts for continuous integration running on Ubuntu.
I want to be able to restore the database to a backup taken from produ...
Hi Guys.
I'm writing an ant script to rebuild our database i.e. dropping everything and rebuilding from scratch. The problem our DBA adds a Y/N prompt before executing the rest of the script, and therefore we can't call this from an automated build process.
Does anyone have any suggestions to circumvent the Y/N prompt? Obviously we c...
Hi people,
i try to write ant task, that do the following(pseudo code):
if(property1 == null)
gets property1 from user input and saves this value(so when next time script will be executed the value must be used)
else
use value
So, with another words, if i run script at the first time it must ask some value and save this value f...
http://ant.apache.org/manual/CoreTypes/mapper.html
here's my target:
<target name="ms.copy-example">
<copy todir="${ms.custom}">
<fileset dir="${ms.example}">
<include name="build.xml" />
</fileset>
<scriptmapper language="javascript">
self.addMappedName("dir1/"+source);
self.addMappedName("dir2/"+source);
...
I'm creating a build environment for third party developers. I want to provide them with an ivy.xml which a 3rd party shouldn't change and also a ivy-custom.xml which they should change.
<target name="resolve" depends="download-ivy">
<ivy:resolve file="ivy.xml"/>
<ivy:resolve file="ivy-custom.xml"/>
</target>
This doesn't see...
I'm using OSGi for my latest project at work, and it's pretty beautiful as far as modularity and functionality.
But I'm not happy with the development workflow. Eventually, I plan to have 30-50 separate bundles, arranged in a dependency graph - supposedly, this is what OSGi is designed for. But I can't figure out a clean way to manage d...
We've got a parent project and a child project java builds using ant and ivy. The child project needs to be able to build independently.
When the parent project calls the child project the antfile command - the parent project's ivy.xml overrides the child project's ivy.xml
Does anyone know how to keep the child project using its own i...
I want to execute a build.xml (Ant buildfile) from using GMaven (Maven Plugin for inline execution of Groovy in a POM). Since I have to execute the buildfile several times using the maven-antrun-plugin is not an option. The buildfile is evolving and taken from a partner project with little changes. That's why I don't want to put the logi...
Hi guys,
I have to refactor an ant xml file. Basicly I have one big task that checkouts (using cvs) a lot of dependencies, build them, and then copy all the jar/wsdl generated by building them to a directory that I specify. If one dependency version changes, I have to change the name in at least 3 places on the xml file (cvs checkout, b...
I need a block analogous to Java try-catch
if its target failed, I still need to go further and execute the next block.
Does it exist?
...
Hi all,
I am using Apache Ant to generate Javadoc for my program which has many projects(or modules). However, I just want to generate Javadoc for Interfaces ONLY and I do not know how to check if a file is a class or interface in Ant. Someone suggested me that I should use and specify a list of files to exclude or include. However, th...
I'm writing an custom ant task in java. I would like to get a list of all the files within a FileSet. What is the best way to do this?
...
I have an Ant script running a standard -task after taking in an inputed password:
<input message="Password:" addproperty="password">
<handler classname="org.apache.tools.ant.input.SecureInputHandler" />
</input>
<exec executable="/bin/sh" input="${password}" failonerror="true">
<arg line='-c "myScript.sh"' />
</exec>
The script ...
Using just Ant, I want to copy subdirectories of some top-level directories but the names of top-level directories can change so I need Ant to programatically determine which directories to copy.
In other words, given the sample directory structure below, copy the contents of each ./<projectX>/bin directory to ./bin.
bin
project1
\-...
What's a good way to include Pear dependencies in ant/ivy. Should I use phing or is there a better way using ant?
Thanks,
Sriranjan
...
Hi,
I want to write a buil.xml file that should open a new terminal for every client/server i want to use for testings.
How can i do that? i tried this code to run for example the 'ls' command on the newly created terminal. He created the terminal but doesn't run the cmd.
thanks.
...
Hi,
I have several ant scripts, for example ant1.xml, ant2.xml, ant3.xml. And I want to execute ant1.xml and ant2.xml in ant3.xml, so that when I execute ant3.xml, ant1.xml and ant2.xml are executed.
Can anyone show me some ways, please?
Thanks
...