AntRun « Ant « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Ant » AntRun 

1. Multiple antrun tasks in maven    stackoverflow.com

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

2. How to execute tasks conditionally using the maven-antrun-plugin?    stackoverflow.com

I need to execute some ant commands depending on an environment variable passed in as a parameter to the maven build command. At the moment I have 3 tasks blocks and only ...

3. Run a Ant task in Maven only if a property is set    stackoverflow.com

My pom.xml is running an Ant task to deploy a file using FTP. However, this deployment must be only done if the -Dftp=true argument is given in the Maven command (i.e. ...

4. Maven antrun with sequential ant-contrib fails to run    stackoverflow.com

We have a special routine to explode files in a subfolder into extensions, which will be copied and jared into single extension files. For this special approach I wanted to use ...

5. Problem using antcontrib task via maven-antrun-plugin    stackoverflow.com

My maven java project uses the maven-antrun-plugin to execute a deploy.xml ant script that deploys my app. The deploy.xml uses the <if> task and this seems to be causing the problem;

...

6. Is it possible to set a maven property from ant?    stackoverflow.com

I tried to use the maven-antrun-plugin to check in a first execution if a file exists and then set a property accordingly. In another execution (another phase) of the antrun-plugin I ...

7. How to retrieve information from antrun back to maven?    stackoverflow.com

How can I get information from maven-antrun-plugin back to Maven script? For example:

[...]
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.6</version>
  <executions>
    <execution>
      <phase>test</phase>
 ...

8. How to disable antrun if certain file already exists?    stackoverflow.com

How can I disable maven-antrun-plugin execution when certain file already exists?:

[...]
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.6</version>
  <executions>
    <execution>
      <phase>test</phase>
   ...

9. Running antrun during war:exploded    stackoverflow.com

For a Maven build I need to copy some files after the exploded directory has been made with the war plugin. Is it possible to run the antrun plugin during/after the ...

10. Problem with picking up a -Dattribute in Maven using Antrun    stackoverflow.com

So I have this snippet in my pom

<configuration>  
  <target if="csc" >
    <echo>Unzipping md csc help</echo>
  </target> 
  <target unless="csc">
    <echo>Unzipping ...

11. How do I get maven to die gracefully if expected parameters aren't supplied?    stackoverflow.com

I'm using Maven 3.0.3 on Solaris 10. How do I get Maven to fail gracefully if the parameters "env" and "label" are not supplied on the command line ? ...

12. Integrating ant resource generation targets into a Maven build    stackoverflow.com

I'm currently working on a fairly large project that has been migrated from Ant to Maven. There are no problems with the actual build process (it compiles and packages the source ...

13. Maven Antrun Not Executing Tasks    stackoverflow.com

I'm using Maven AntRun plugin 1.6 and from their example I cannot code the following ant task to be executed. Example url: http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html I just get the following message ...

14. How to bind ant to a maven-plugin custom goal    stackoverflow.com

The way to integrate maven with ant is to simply use the maven-antrun-plugin like

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.6</version>
    <executions>
 ...

15. Maven3 antrun: failed to create task or type replaceregexp    stackoverflow.com

Im trying to write a simple task using maven

<plugin>
 <artifactId>maven-antrun-plugin</artifactId>
 <version>1.3</version>
 <executions>
  <execution>
    <phase>install</phase>
    <goals>
        <goal>run</goal>
  ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.