Jason Dillon wrote:

You can specify properties for the dependency to indicate if it is runtime or not, then use that information to collect your runtime dependencies.

Example:

    <dependency>
      <id>commons-logging</id>
      <version>1.0.3</version>
      <url>http://jakarta.apache.org/commons/logging</url>
      <properties>
        <runtime>true</runtime>
      </properties>
    </dependency>

* * *
      <j:forEach var="artifact" items="${pom.artifacts}">
        <j:set var="dependency" value="${artifact.dependency}"/>
        <j:if test="${dependency.getProperty('runtime') == 'true'}">
          <ant:echo>Processing dependency: ${dependency.id}</ant:echo>
          <ant:mkdir dir="${aggregate.dir}/lib"/>
          <ant:copy todir="${aggregate.dir}/lib" file="${artifact.path}"/>
        </j:if>
      </j:forEach>


Thanks a heap man!



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



Reply via email to