jvanzyl 2002/11/11 15:20:45
Added: src/conf driver.jelly driver.properties
Removed: src/bin driver.jelly driver.properties
Log:
o The driver files are now stored in the maven jar and don't live
in the filesystem.
Revision Changes Path
1.1 jakarta-turbine-maven/src/conf/driver.jelly
Index: driver.jelly
===================================================================
<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:define="jelly:define"
xmlns:m="maven">
<!-- ================================================================== -->
<!-- M A V E N T A G L I B R A R Y -->
<!-- ================================================================== -->
<!-- A collection of dynamic tag libraries that make writing -->
<!-- plugins convenient. -->
<!-- ================================================================== -->
<define:taglib uri="maven">
<!-- ================================================================== -->
<!-- U S E R N A M E C H E C K -->
<!-- ================================================================== -->
<!-- For several goals we need to make sure that Maven can grab -->
<!-- hold of a valid username. For deployment goals in particular -->
<!-- where Maven needs to upload an artifact to a server. -->
<!-- ================================================================== -->
<define:tag name="user-check">
<j:set var="tmp" value="${user}"/>
<j:if test="${tmp.equals('USERNAME_NOT_SET')}">
<fail message="">
+------------------------------------------------------------------
| ERROR!
|
| You must specify a maven username in order to deploy the site!
| You can either set this property in your ~/build.properties
| or specify one on the command line:
|
| maven -Dmaven.username=${user.name} [goal]
+------------------------------------------------------------------
</fail>
</j:if>
</define:tag>
<define:jellybean
name="create-dependency-classpath"
className="org.apache.maven.CreateDependencyClasspath"
method="execute"
/>
</define:taglib>
<!-- Allow a hook for processing around the build start. -->
<goal name="build:start"/>
<!-- ================================================================== -->
<!-- D R I V E R I N I T I A L I Z A T I O N -->
<!-- ================================================================== -->
<!-- All things we want to provide to all plugins, or processes we -->
<!-- performed before every build are declared/defined here. -->
<!-- ================================================================== -->
<j:set var="dir__" value="${pom.build.sourceDirectory}X"/>
<j:if test="${dir__ != 'X'}">
<available
property="sourcesPresent"
file="${pom.build.sourceDirectory}"
/>
</j:if>
<j:set var="dir__" value="${pom.build.unitTestSourceDirectory}X"/>
<j:if test="${dir__ != 'X'}">
<available
property="unitTestSourcesPresent"
file="${pom.build.unitTestSourceDirectory}"
/>
</j:if>
<m:create-dependency-classpath
refid="maven.dependency.classpath"
context="${context}"
/>
<path id="maven-classpath">
<fileset dir="${maven.home}/lib"/>
</path>
<j:if test="${sourcesPresent == 'true'}">
<path id="maven.compile.src.set">
<pathelement location="${pom.build.SourceDirectory}"/>
</path>
</j:if>
</project>
1.1 jakarta-turbine-maven/src/conf/driver.properties
Index: driver.properties
===================================================================
# -------------------------------------------------------------------
# D R I V E R P R O P E R T I E S
# -------------------------------------------------------------------
maven.src.dir = ${basedir}/src
maven.conf.dir = ${basedir}/conf
maven.build.dir = ${basedir}/target
maven.build.src = ${maven.build.dir}/src
maven.build.dest = ${maven.build.dir}/classes
maven.compile.debug = on
maven.compile.optimize = off
maven.compile.deprecation = off
maven.jar.excludes = **/package.html
maven.jarResources.basedir=${basedir}
maven.final.name = ${pom.id}-${pom.currentVersion}
maven.final.dir = ${basedir}/${maven.final.name}
# -------------------------------------------------------------------
# M A V E N L O C A L R E P O
# -------------------------------------------------------------------
maven.repo.local = ${maven.home}/repository
# -------------------------------------------------------------------
# M A V E N P L U G - I N D I R E C T O R Y
# -------------------------------------------------------------------
maven.plugin.dir = ${maven.home}/plugins
# -------------------------------------------------------------------
# M A V E N R E M O T E R E P O S
# -------------------------------------------------------------------
maven.repo.remote = http://www.ibiblio.org/maven
maven.repo.central = login.ibiblio.org
maven.repo.central.directory = /public/html/maven
maven.repo.remote.enabled = true
# -------------------------------------------------------------------
# M A V E N U P D A T E S I T E A N D S E L F U P D A T I N G
# -------------------------------------------------------------------
# This needs to be changed before prime time.
maven.updateSite = http://www.apache.org/~jvanzyl/maven/update
# -------------------------------------------------------------------
# M A V E N D I S T R I B U T I O N S
# -------------------------------------------------------------------
maven.distBuildDirectory = ${basedir}/target
maven.distBuildIndicator = DIST_BUILD_DIRECTORY
maven.distDirectory = ${basedir}/dist
# -------------------------------------------------------------------
# E N V I R O N M E N T D E P E N D E N T T O O L S
# -------------------------------------------------------------------
maven.scp.executable = scp
maven.ssh.executable = ssh
# -------------------------------------------------------------------
# Mark the defaults as loaded - PLEASE DON'T OVERRIDE
# -------------------------------------------------------------------
maven.defaults.loaded = true
maven.build = MAVEN_BUILD_NOT_SET
maven.username=USERNAME_NOT_SET
# -------------------------------------------------------------------
# M A V E N D E F A U L T G O A L
# -------------------------------------------------------------------
# The goal that is run when one isn't specified on the command line
# and when one isn't specified in the maven.xml file.
# -------------------------------------------------------------------
maven.default.goal = java:jar
--
To unsubscribe, e-mail: <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>