I am trying to create a war file out of an eclipse project using ant
The responsible ant target looks like this
<target name="jar" depends="build" description="Erzeugt das WAR File">
<war destfile="${project.dir.dist}/xyz.jar" webxml="${basedir}/WebRoot/WEB-INF/web.xml" duplicate="fail" basedir="${basedir}">
<lib dir="${proj...
in ivy:publisher the default deliverivypattern is ${ivy.distrib.dir}/[type]s/[artifact]-[revision](-[classifier]).[ext]
I try to set classifier in my ivy.xml under by adding attribute e:classifier="" to the element.
But the [classifier] does not get set?
When ivy:publish runs in my build.xml file it appears to be empty and thereby no...
I want to copy a lot of subfolders and its content from various other folders to one specific folder.
I also want to use a patternset to choose the subfolders to copy.
For example there may be a folder wich contains a lots of subfolders which then could contain again subfolders. Now I want a patternset to get all folders named org or com...
Hi,
I have the following ANT task:
<target name="run-tests" depends="compile" description="run your test suite" >
<junit printsummary="yes" haltonfailure="yes" showoutput="yes" >
<classpath>
<pathelement location="${build}/"/>
<pathelement path="${java.class.path}"/>
<fileset dir="lib">
<include name="**/*.jar"/>
<...
I'm developing a few custom ant tasks that all need to initialize the same objects. I wanted to initialize those object's in a common superclass that extends from Task, in the init() method. But I see from the lifecycle of an ant task that init() gets called before the tasks child elements and attributes are set. So all of the data I ...
We are using Eclipselink and need to weave the code in order for lazy fetching to work property.
During the weave process I'm getting the following error:
weave:
BUILD FAILED
java.lang.OutOfMemoryError: PermGen space
I have the following tasks within my ant build file:
<target name="define_weave_task" description="task defin...
So, within the directory containing my GWT application, I can type in the console
ant devmode
And it will start up my GWT application as per usual. So far so good.
However, what if wish to specify the port as a dynamic argument when starting devmode. Something conceptually like:
ant devmode port=8821
Or am I supposed to pas...
I'm following Rose India Hello World Tutorial for Struts2 development,
I'm Getting,
Buildfile: D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\struts2tutorial\WEB-INF\src\build.xml
clean:
[delete] Deleting directory D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\struts2tutorial\WEB-INF\classes
[mkd...
We build our project from CruiseControl.
We have a ant script running some exec commands, and the output of this is placed in the CDATA part of that message, and its priority is set to "info".
Now I have created an XSL that modifies this priority depending on the CDATA output, so it creates a new logfile that I want CruiseControl to use...
Hello
I have a WebApp with two dependencies as shown below. I would like to build a war file for deployment on Tomcat using Ant + Ivy.
+
+-MyWebApp // this Dynamic Java Web Application (deployed Tomcat and launches
// a thread contained in MyApp)
+-MyApp // this is just a vanilla Java Application
+-MyCommonStuff // these ar...
We are utilizing an ANT script to also copy static images, css, and js files out to our apache web servers. Occasionally we get an access denied error when the copy task is running.
Windows Server 2008, Apache 2.2.
Ant task:
we actually switched to using sync, because it seemed to have more reliable results. I have checked the pe...
Hi all,
I have an issue with an artifact's maven-metadata.xml is not showing up.
Here is the environment i am working on:
Apache Archiva , Ivy, ant.
Problem: When I am Deploying artifact via the Web UI Form, I am able to see all the attributes in maven-metadata.xml.
<metadata>
--<groupId>twitter-evt</groupId>
--<artifactId>authenticati...
I am developing two java programs that run in separate VM's that have a typical server/client relationship. Using ant's parallel/sequential tasks I've been able to get ant to run the server and then the client. I would now like it so that when the client process has stopped, ant kills the server. I've seen this done with custom ant tasks...
I'm using ant 1.8.0 and java 1.6.0.17 and I'm running into a strange problem.
In my build.xml, I have a simple task that compiles the code
<javac destdir="${dir.build.classes}" debug="on">
<classpath refid="classpath"/>
<src path="${dir.src.java}"/>
</javac>
In the "classpath" is a jar, call it library.jar
In a later task, I...
New Ant 1.8.0 (release Feb 1) introduces some cool features, so I tried my build/deployment scripts with new Ant.
I was surprised that execution time becomes in 10-30 times slower for some targets! Below simple example with Exec task, although I got performance problems with other task types too.
<target name="create_backup_impl" if...
Hiya.
I downloaded a red5 ant sample project. (http://osflash.org/red5)
the project contains several XML files that contain @new.project.name@ parameter:
build.xml
ivy.xml
src/logback.xml
www/WEB-INF/red5-web.properties
www/WEB-INF/web.xml
now.. should i edit and manually replace @new.project.name@ with the actual project name or is ...
In the following example,
1. <target name="tests.unit">
2. <junit>
3. <batchtest>
4. <fileset dir="tsrc">
5. <include name="**/Test*.java"/>
6. <exclude name="**/tests/*.java"/>
7. </fileset>
8. </batchtest>
9. </junit>
10. </...
I'd like to set some properties in my ant build file, the names of which, are based on ant's build in properties. In particular, I'd like to set a property like:
<property name="${ant.project.name}.compiled" value="true" />
However, when I tried this the ${ant.project.home} portion was not expanded.
Is it possible to use the value of...
I have setup an ant script as eclipse builder to automatically run all my tests, like below:
<project name="auto-test" default="test">
<property name="tst-dir" location="C:\STAF\services\custom\TopCoder\bin" />
<path id="classpath.base" />
<path id="classpath.test">
<pathelement location="D:\eclipse\eclipse\plugins\o...
Hi,
I am doing some thing obvious wrong. I have a simple applet which needs to upload files to server. I have written an ant script to build the jar file. However, the manifest.mf has class-path split into multiple lines.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Class-Path: lib/commons-codec-1.3.jar lib/commons-ht...