Tom,

Ant scripts can usually be called from within a goal in a maven.xml file. It sounds like you want to do some type of customized build and maven.xml files are usually the way to accomplish this with maven. here is a quick sample of a maven.xml file.

Manuel

<?xml version="1.0"?>
<project
    default="build-asset-ear"
    xmlns:j="jelly:core"
    xmlns:maven="jelly:maven"
    xmlns:ant="jelly:ant">

<goal name="makejar">
     <attainGoal name="clean:clean"/>
     <attainGoal name="copyFiles"/>
      <attainGoal name="jar:jar"/>
      <attainGoal name="plugin:repository-install"/>
    </goal>

    <goal name="copyFiles">
    <copy file="plugin.jelly" todir="${basedir}/target/classes"/>
    <copy file="plugin.properties" todir="${basedir}/target/classes"/>
    <copy file="project.xml" todir="${basedir}/target/classes"/>
    <copy file="project.properties" todir="${basedir}/target/classes"/>
    </goal>

</project>


At 05:57 PM 8/11/2005, you wrote:
Hi everyone:  I am new to using Maven.

I have the following APT ant task from build.xml and would like to migrate this function to Maven. Please give me some pointers on how to start? I've checked the list of Maven plugins and dont
see any APT related goals.

BTW, how to search the previous postings in this Maven User List's mail-archive?

Thanks,
Tom

---
<target name="build-server-java" depends="setup">
    <apt
        fork="true"
        debug="${debug}"
        verbose="${verbose}"
        base="${build.classes.home}"
        sourceBase="${build.classes.home}"
        sourcePath="${basedir}/src">
                <classpath>
                <path refid="compile.lib.path"/>
                    <pathelement location="${basedir}/src"/>
                </classpath>
                <option key="nd" value="${build.home}"/>
                <option key="verbose" value="${verbose}"/>
                <source dir="${basedir}/src">
                        <include name="**/server/*.java"/>
                        <include name="**/common/*.java"/>
                </source>
    </apt>
    <!-- copy handlers descriptor file -->
    <copy todir="${build.classes.home}">
        <fileset dir="${basedir}/src">
            <include name="**/server/**/*.xml"/>
        </fileset>
    </copy>
</target


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to