Author: crossley
Date: Mon Jul 5 01:15:06 2010
New Revision: 960417
URL: http://svn.apache.org/viewvc?rev=960417&view=rev
Log:
Copy the "test" targets to enable a "test-basic" which uses no plugins.
Gump will use this.
Modified:
forrest/trunk/main/build.xml
Modified: forrest/trunk/main/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/build.xml?rev=960417&r1=960416&r2=960417&view=diff
==============================================================================
--- forrest/trunk/main/build.xml (original)
+++ forrest/trunk/main/build.xml Mon Jul 5 01:15:06 2010
@@ -333,6 +333,8 @@ Remove any build directories in a tree b
<target name="test"
depends="validate-config, testseed, testPlugins"
description="Test that the features are okay before committing."/>
+ <target name="test-basic"
+ depends="validate-config, testseedBasic"/>
<target name="testPlugins"
depends="cleanPlugins"
description="Test each type of the plugin">
@@ -376,6 +378,15 @@ Remove any build directories in a tree b
</sequential>
</for>
</target>
+ <target name="testseedBasic" depends="init, cleanPlugins">
+ <for list="skinned,dispatcher" param="type">
+ <sequential>
+ <antcall target="testSiteBasicType">
+ <param name="test.site.type" value="@{type}"/>
+ </antcall>
+ </sequential>
+ </for>
+ </target>
<target name="testSiteType"
depends="testSeedSiteType,testReplacePluginsList"
if="test.site.type"
@@ -385,6 +396,15 @@ Remove any build directories in a tree b
<property name="project.home" value="${test.dir}"/>
</ant>
</target>
+ <target name="testSiteBasicType"
+ depends="testSeedSiteBasicType,testReplacePluginsList"
+ if="test.site.type"
+ description="Called by test target - Seeds, replaces list of required plugins and generates a new site for testing">
+ <ant antfile="${forrest.core}/forrest.build.xml" target="site">
+ <property name="forrest.home" value="${forrest.home}"/>
+ <property name="project.home" value="${test.dir}"/>
+ </ant>
+ </target>
<target name="testSeedSiteType"
description="Called by test target - Seeds a new site for testing and read the value of project.required.plugins if supplied">
<echo level="info">
@@ -406,6 +426,26 @@ Remove any build directories in a tree b
<fileset dir="${test.dir}" includes="forrest.properties.*.properties"/>
</delete>
</target>
+ <target name="testSeedSiteBasicType">
+ <echo level="info">
+ -------------------------------------
+ Testing seeded basic ${test.site.type} site ...
+ -------------------------------------
+ </echo>
+ <echo/>
+ <property name="test.dir" value="${build.dir}/test_${test.site.type}_site"/>
+ <delete dir="${test.dir}"/>
+ <mkdir dir="${test.dir}"/>
+ <ant antfile="${forrest.core}/forrest.build.xml" target="seed-basic">
+ <property name="forrest.home" value="${forrest.home}"/>
+ <property name="project.home" value="${test.dir}"/>
+ </ant>
+<!-- reading the value of project.required.plugins property if defined in forrest.properties.${test.site.type}.properties -->
+ <property file="${test.dir}/forrest.properties.${test.site.type}.properties"/>
+ <delete file="${test.dir}/forrest.properties.*.properties" failonerror="false">
+ <fileset dir="${test.dir}" includes="forrest.properties.*.properties"/>
+ </delete>
+ </target>
<target name="testReplacePluginsList"
if="project.required.plugins"
description="Called by test target - Replaces the list of required plugins if supplied for testing a new site">
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.