ant

How do I exclude a specific method/constructor from the results of the javadoc Ant task?

I'm using javadocs generated by the javadoc Ant task to document a web service, and I want to exclude some constructors from the output. How do I do that? ...

Multiple antrun tasks in maven

How would you execute ant tasks at different phases in a maven build cycle? ...

Can't enhance kodo JPA classes

I am just moving to Kodo JPA version 4.2 and it isn't going smoothly. when I run my any build script (in eclipse 3.4.1) I get BUILD FAILED D:\My Documents\eclipseWorkspaces\cnmp e341\blue ebig\ebig\src\java\build.xml:91: <openjpa-1.1.0-r422266:657916 fatal user error> org.apache.openjpa.util.MetaDataException: MetaDataFactory could no...

How to add condition to the codes? (Ant)

...do the same thing to the other files, but it takes a long time I only want to delete and copy files that have been updated. (With the modified date in clearcase later than that in RSA) ...

can't overwrite reference with ant task using nested reference element

I have a main build file with a path declaration <path id="path.app.src"> <pathelement location="myfolder/src"/> </path> Then i call a task in sub file with <ant> <ant antfile="subbuild.xml" inheritAll="false" inheritRefs="false"> <reference refid="path.app.src"/> </ant> in subbuild.xml i have: <path id="subpath.app.src"> ...

ClassNotFoundException with ant's java task and classpath

Hello, I am trying to compile and run a simple java class within eclipse. The compile task works fine, and since I do not specify a destination folder the build files are in the same directory as the source. Which is alright, at the moment all I need is to learn how I can run the class with the main() method. I have tried using the ful...

Selenium running as junit in ant prematurely closes browser but not in IDE

I've got a bunch of selenium test cases set up in a JUnit class as four methods. The first runs fine - but the remaining three close the Firefox browser before the final step of the method is complete - giving a ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log windo...

Is Gant 100% Ant compatible?

I wrote some Groovy code, and I'd like to integrate it with the existing Java code. We'd like to be able to keep our ant scripts, and only add the needed Groovy functionality. Will Gant allow us to keep our existing scripts? ...

problem compiling a junit test class with ant

Hello, I am having issues integrating junit with a working ant build.xml file. My test class is in the same directory as my source classes. As I am learning how to use ant, I simply want to compile all the source and the test classes. I am using eclipse and the junit test classes work fine when execute through eclipse. Which means the ...

Run Junit-Tests from several projects conveniently fast in Eclipse

Is there a way to run JUnit-Tests from several projects conveniently fast in Eclipse? The JUnit-Runner lets you define a package or a folder where from all contained tests are executed. Is there a way to do this with tests from several projects inside Eclipse? Preferably it should be via the Junit-Runner. If there is some way to have ...

How to include restricted fileset in zip without creating an interim copy in ant

I have a fileset which contains a number of jars of which I only want a subset. I'm currently doing this: <target name="work-around"> <delete dir="${dir.deps}" failonerror="false" /> <copy todir="${dir.deps}" flatten="true"> <restrict> <fileset refid="mvn.deps.fileset" /> <rsel:name name="**/mycompany-core*...

How do I get Intellij not to analyze my ant build files?

I'm using ant as my primary builder for a flex project in IntelliJ. Every time I build, IntelliJ runs the code analysis tool and finds a bunch of errors in my build file, which pops up the "Messages" window every time. Actually, the errors that it finds are complaining mostly about properties which are defined in a separate file, which...

Diff between setLine() and setValue() in Ant API Commandline.Argument class?

I don't understand the difference between these methods. Here's what the JavaDoc says: setLine(String) = Line to split into several commandline arguments. setValue(String) = Sets a single commandline argument. My confusion is that I see them being used interchangeably in the code I'm updating. An example: Commandline comma...

How do a run a bash script on save in NetBeans?

Dear Gurus, I am using NetBeans 6.5 and whenever I save a LessCSS file I would like to run less compiler to compile it to native css. How do I go about achieving this? Many Thanks. Ravi EDIT: I can do a build file as Kim recommended below. I am searching for a solution where I can run an external command. So the question now is How Do ...

How do I obtain the file name from a directory name in Ant?

I have a DirSet which I would like to convert to a comma-delimited list of directory names. I'm not interested in the full path, just the names. Using the ant-contrib "for" task I've been able to iterate the directories and create the target list, but for the life of me I can't figure out how to extract just the directory name from the f...

Generating a comma-delimited file list with Ant

I'm trying to create a comma-delimited list of files or directories under the current directory. For instance, suppose I have the following folder structure: Root -- Directory1 -- Directory2 ... I want to generate a variable or property that contain "Directory1,Directory2." I've tried iterating (using ant-contrib "for" task) over a <...

how to use this flex compiler option copy non embeded files to destination folder

i am using mxmlc for building the flex projects using ant.how to use flex builder-> copy non embeded files to destination folder compiler option in ANT ...

build PHP with ant scripts

Hey everyone, I was just wondering how I use Ant to build my web applications that I have written in PHP? I've googled around a bit and I have seen that it is possible but there are not any examples of the basic idea or any advanced use for them. Can any of you help me out? Thanks! ...

how to ignore cvs folder in Ant script

After building an application by using ant, i am copied the component to a temp folder. But, the cvs folder is also copied and it increases the no of folder and file almost double by number. Is there any solution to ignore cvs folder in ant build file? ...

How do I set the Java library path from a Java task?

Is it possible to specify a library path in a java task? Like the equivalent of: java -Djava.library.path=somedir Whatever ...