mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Small changes in the ant targets
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@91988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,10 +25,8 @@ Using Eclipse
|
|||||||
|
|
||||||
Summary of Available Ant Targets
|
Summary of Available Ant Targets
|
||||||
|
|
||||||
- configureSolr : Configures Solr for Alfresco
|
|
||||||
- fullBuild : Creates the amp file and applies it to the war file
|
- fullBuild : Creates the amp file and applies it to the war file
|
||||||
- incrementalBuild : Creates the jar file and copies the jar file with other files like css, js, ftl, etc. files
|
- incrementalBuild : Creates the jar file and copies the jar file with other files like css, js, ftl, etc. files
|
||||||
- prepareEnv : Prepares the development environment (must be run just once)
|
|
||||||
|
|
||||||
|
|
||||||
Summary of Available Internal Ant Targets
|
Summary of Available Internal Ant Targets
|
||||||
@@ -36,6 +34,7 @@ Summary of Available Internal Ant Targets
|
|||||||
- alfresco:amp : Creates the amp file using alfresco maven plugin
|
- alfresco:amp : Creates the amp file using alfresco maven plugin
|
||||||
- alfresco:install : Installs the amp file to the war file
|
- alfresco:install : Installs the amp file to the war file
|
||||||
- assembleIconPackage : Assembles an icons package for the module
|
- assembleIconPackage : Assembles an icons package for the module
|
||||||
|
- configureSolr : Configures Solr4 for Alfresco
|
||||||
- copyDBDriver : Copies the DB driver
|
- copyDBDriver : Copies the DB driver
|
||||||
- copyDevContextFile : Copies the dev-context.xml file
|
- copyDevContextFile : Copies the dev-context.xml file
|
||||||
- copyWarFileToTomcat : Copies the war file (amp applied) to the webapp folder
|
- copyWarFileToTomcat : Copies the war file (amp applied) to the webapp folder
|
||||||
@@ -46,4 +45,5 @@ Summary of Available Internal Ant Targets
|
|||||||
- fetchWarFile : Gets the "original" war file
|
- fetchWarFile : Gets the "original" war file
|
||||||
- install : Executes the "mvn install" command
|
- install : Executes the "mvn install" command
|
||||||
- package : Executes the "mvn package" command
|
- package : Executes the "mvn package" command
|
||||||
|
- prepareEnv : Prepares the development environment (must be run just once)
|
||||||
- unitTest : Runs the unit tests
|
- unitTest : Runs the unit tests
|
@@ -6,15 +6,3 @@ app.war.artifactId=alfresco
|
|||||||
|
|
||||||
# Tomcat folder name used by the alfresco application
|
# Tomcat folder name used by the alfresco application
|
||||||
app.tomcat=tomcat
|
app.tomcat=tomcat
|
||||||
|
|
||||||
# Solr configuration
|
|
||||||
solr.directory=solr
|
|
||||||
solr.artifactId=alfresco-solr
|
|
||||||
solr.packaging=zip
|
|
||||||
solr.package=${solr.artifactId}.${solr.packaging}
|
|
||||||
|
|
||||||
# DB driver properties
|
|
||||||
db.driver.groupId=postgresql
|
|
||||||
db.driver.artifactId=${db.driver.groupId}
|
|
||||||
db.driver.version=9.1-901.jdbc4
|
|
||||||
db.driver.packaging=jar
|
|
@@ -10,10 +10,10 @@
|
|||||||
<target name="copyDBDriver">
|
<target name="copyDBDriver">
|
||||||
<exec executable="${mvn.exec}" failonerror="true">
|
<exec executable="${mvn.exec}" failonerror="true">
|
||||||
<arg value="dependency:get" />
|
<arg value="dependency:get" />
|
||||||
<arg value="-DgroupId=${db.driver.groupId}" />
|
<arg value="-DgroupId=postgresql" />
|
||||||
<arg value="-DartifactId=${db.driver.artifactId}" />
|
<arg value="-DartifactId=postgresql" />
|
||||||
<arg value="-Dversion=${db.driver.version}" />
|
<arg value="-Dversion=9.1-901.jdbc4" />
|
||||||
<arg value="-Dpackaging=${db.driver.packaging}" />
|
<arg value="-Dpackaging=jar" />
|
||||||
<arg value="-Ddest=${app.tomcat.folder}/lib" />
|
<arg value="-Ddest=${app.tomcat.folder}/lib" />
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
@@ -24,16 +24,7 @@
|
|||||||
<copy file="${devContextFile}" todir="config/alfresco/extension" failonerror="true" />
|
<copy file="${devContextFile}" todir="config/alfresco/extension" failonerror="true" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="prepareEnv" depends="copyDBDriver, copyDevContextFile" description="" />
|
<target name="configureSolr4">
|
||||||
|
|
||||||
<target name="unitTest">
|
|
||||||
<exec executable="${mvn.exec}" failonerror="true">
|
|
||||||
<arg value="test" />
|
|
||||||
<arg value="-Dtest=AllUnitTestSuite" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="configureSolr4" description="Configures Tomcat and the Alfresco repository to use Solr4">
|
|
||||||
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
||||||
<exec executable="${mvn.exec}" failonerror="true">
|
<exec executable="${mvn.exec}" failonerror="true">
|
||||||
<arg value="dependency:get" />
|
<arg value="dependency:get" />
|
||||||
@@ -118,4 +109,12 @@
|
|||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="prepareEnv" depends="copyDBDriver, copyDevContextFile, configureSolr4" />
|
||||||
|
|
||||||
|
<target name="unitTest">
|
||||||
|
<exec executable="${mvn.exec}" failonerror="true">
|
||||||
|
<arg value="test" />
|
||||||
|
<arg value="-Dtest=AllUnitTestSuite" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
Reference in New Issue
Block a user