Is there a way to have an Ant Fileset->IncludesFile attribute take a property file OR any other file that contains a list of Java class files to exclude?
Eg:
File A.properties OR A.java contains listing
abc.class
mno.class
xyz.class
Is there a way to say to point excludesFile to file A.properties.
<fileset dir="...">
<exclu...
Does anyone know how to set ANT_OPTS in eclipse's ant runner and have it picked up?
I've tried setting it via the Environment tab in the External Tools setup, but that doesn't appear to be picked up.
I'm trying to set the following:
-Djava.util.logging.config.file=logging.properties
so that I can turn on debug logging in some Oracle ...
I have a project with multiple modules, each in its own directory. Each module has its own ant build file (build.xml)
In the root directory I've set up a general build file that calls the build file of each module in the right order.
<?xml version="1.0"?>
<project name="bridgedb" default="all" basedir=".">
<target name="all">
<an...
I would have thought that if you didn't provide a destination, xmltask would modify the source file and replace it, but apparently that's not the case since the below code does not work:
<xmltask source="**\plugin.xml">
<attr path="plugin" attr="version" value="12345" />
</xmltask>
If I specify a destination, I get an error saying ...
The file looks like:
a1,b1
a2,b2
...
I know the value "a2".
How to get the value "b2" into a property value.
I know how to select line which contains "a2" by:
<linecontains>
<contains value="a2"/>
</linecontains>
But I do not know how to set a property value to "b2".
I am at your disposal for more other informations.
...
I'm more accustomed to make, so I'm confused why ant recompiles classes when the source hasn't been changed. I've read that there is a requirement to recompile in some cases where generics are used, but I'm not sure that this will be necessary for my project.
Also, in the javac task, I've set includeDestClasses="true"
Here's some of t...
Hi,
I can't figure out how to set an ANT property on the condition that it has not been set(i.e: it is not defined in the properties file and should automatically default).
So far, I only have the following code:
<condition property="core.bin" value="../bin">
<isset property="core.bin"/>
</condition>
But this only seems to work ...
Is there an Ant API for reading and ant build.xml and retrieving elements from it? Specifically I want to be able to retrieve the values in a path element and be able to walk all of the elements in the path.
My purpose is to retrieve a given path and ensure that it is referenced correctly in a manifest, so that the build and the manifes...
I have the following ant build.xml:
<path id="antclasspath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<property name="pathvar" refid="antclasspath" />
<echo message="Classpath is ${pathvar}"/>
<sql
driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@myserver.hu:1521:dbid"
u...
Does anyone know how (or process) to remove comments from Java class file at build time? i would like to do this for specific packages in the project when the project is build using Ant. Any ANT scripts or some custom code most welcome.
...
How do I check if a particular class exists in a jar file? I tried available task and it does not seem to work
If there is a way, can I use patterns in it?
For example, I want to check if a class matching pattern **/xyz/foo.class exists in foobar.jar
Any direction appreciated.
...
It doesnt seem that when you combine these Fileset attribute like below:
eg:
<fileset dir="src">
<include name="gov/nasa/arc/mas/selenium/tests/*.java" />
<excludesfile name="${test.suite}.exclude" />
</fileset>
that it has the expected behavior which is to include all *.java under src but exclude all the file specified on the...
How can I access the name of the system user (which eclipse also uses for the javadoc
author tag) in my ant build file?
I'm trying to show some information about the current program version in my java application.
I decided to use jreleaseinfo which passes variables from my ant build script to my java classes (to show them in a window)...
I'm looking for some way to replace patterns in files with values, during build time.
E.g. a configuration file may look the same except that different machines requires different hostnames in some setting. In that case i want to have a template file, where hostname is replaced with @@hostname@@
Then when building, I want to create sep...
I am looking for the best way to integrate Git with Ant. Is there a widely used Ant task for Git? Does anyone have any experience using Git through Ant (e.g. dedicated task, exec call, etc)?
...
I am using ANT to build android project ,I am adding external jar in the lib folder and trying to build the project it builds perfectly but i am getting run time error ...i have seen some groups they have said that the build.xml has to be modified with these changes
<target name="dex" depends="compile">
<exec executable="${dx}" fa...
Can anyone suggest to me the best way to capture the output from an ANT command?
I'm writing some routing tests for sun spot devices. The command itself returns network statistics. I'm trying to write something which will dump all these results into a more visual application.
I'm on Windows Vista.
Thanks
...
I wonder if this is possible with ant and java:
I have a Java project which looks like this:
./
build.xml
src/
com/
example/
{.java files here}
bin/
com/
example/
{compiled .class files here}
lib/
{3rd-party jar files here}
dist/
{jar file(s) here}
I know how to make a .jar file...
I'm running unit test using ant
<target name="test" depends="tomcatDeploy" description="Build and run tests">
<ant dir="${aDir}" target="test"/>
<ant dir="${bDir}" target="test"/>
<ant dir="${cDir}" target="test"/>
<ant dir="${dDir}/ExtFramework" target="test"/>
</target>
and I want to run them all on the same VM - o...
Is it possible to generate the ibm-ejb-jar-bnd.xmi file using the wsejbdeploy ant task? How can we generate the same using maven? Tried using was6-maven-plugin but it didn't work.
...