You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by le...@apache.org on 2003/08/23 01:46:41 UTC
cvs commit: jakarta-commons-sandbox/attributes/plugin plugin.jelly plugin.properties project.xml
leosutic 2003/08/22 16:46:41
Added: attributes/plugin plugin.jelly plugin.properties project.xml
Log:
Added a Maven plugin for the attributes compiler.
Revision Changes Path
1.1 jakarta-commons-sandbox/attributes/plugin/plugin.jelly
Index: plugin.jelly
===================================================================
<?xml version="1.0"?>
<project xmlns:j="jelly:core"
xmlns:define="jelly:define"
xmlns:util="jelly:util"
xmlns:maven="jelly:maven"
xmlns:ant="jelly:ant">
<ant:taskdef resource="org/apache/commons/attributes/anttasks.properties">
<classpath>
<path refid="maven.dependency.classpath"/>
</classpath>
</ant:taskdef>
<preGoal name="java:compile">
<ant:mkdir dir="${maven.build.dir}/commons-attributes"/>
<attribute-compiler inMaven="true" sourcepathref="maven.compile.src.set"
destdir="${maven.build.dir}/commons-attributes"/>
<ant:path
id="jakarta.commons.attributes.generated.dir"
location="${maven.build.dir}/commons-attributes"/>
<maven:addPath
id="maven.compile.src.set"
refid="jakarta.commons.attributes.generated.dir"/>
</preGoal>
</project>
1.1 jakarta-commons-sandbox/attributes/plugin/plugin.properties
Index: plugin.properties
===================================================================
# ------------------------------------------------------------------
# P L U G I N P R O P E R T I E S
# -------------------------------------------------------------------
# Avalon plugin.
# -------------------------------------------------------------------
#
# Policy controlling the regeneration of meta descriptors independently
# of the descriptor data. This value defaults to false.
#
avalon.meta.force=false
#
# Output format specification. Valid values include 'xml' or 'serial'.
# The xml value instructs the meta generator to create meta descriptions
# in an XML format whereas the 'serial' value generates a serialized
# description of the descriptor. Serial format is more efficient. The
# default XML format is more portable.
#
avalon.meta.format=xml
#
# When generating type descriptors, Merlin recognizes both <classname>.xinfo
# and <classname>.xtype. The .xtype postfix is used in situations where
# developers want to generate both Merlin and Phoenix descriptors. The
# value default to xinfo.
#
avalon.meta.type.postfix=xinfo
1.1 jakarta-commons-sandbox/attributes/plugin/project.xml
Index: project.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<project>
<extend>${basedir}/../project.xml</extend>
<pomVersion>3</pomVersion>
<id>commons-attributes-plugin</id>
<name>Commons Attributes Maven Plugin</name>
<description>Commons Attributes Plugin for Maven</description>
<shortDescription>Commons Attributes Plugin for Maven</shortDescription>
<package>org.apache.commons.attributes</package>
<dependencies>
<dependency>
<groupId>commons-attributes</groupId>
<artifactId>commons-attributes-api</artifactId>
<version>SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-attributes</groupId>
<artifactId>commons-attributes-compiler</artifactId>
<version>SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.5</version>
</dependency>
<!-- pre JDK 1.4 dependencies -->
<dependency>
<id>xml-apis</id>
<version>1.0.b2</version>
<url>http://xml.apache.org/xerces2-j/</url>
</dependency>
<dependency>
<id>xerces</id>
<version>2.2.1</version>
<url>http://xml.apache.org/xerces2-j/</url>
</dependency>
<!-- xdoclet -->
<dependency>
<id>commons-collections</id>
<version>2.1</version>
</dependency>
<dependency>
<id>commons-logging</id>
<version>1.0.1</version>
</dependency>
<dependency>
<id>log4j</id>
<version>1.1.3</version>
</dependency>
<dependency>
<id>xdoclet+xjavadoc</id>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
<resources>
<resource>
<directory>${basedir}/src/plugin-resources</directory>
<targetPath>plugin-resources</targetPath>
</resource>
<resource>
<directory>${basedir}</directory>
<includes>
<include>plugin.jelly</include>
<include>plugin.properties</include>
<include>project.properties</include>
<include>project.xml</include>
</includes>
</resource>
</resources>
</build>
</project>