Fix tests to handle wtp settings 0.7 and 1.5
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@480617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83eb1cdb3a
commit
a9fb54ace3
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -22,38 +22,48 @@
|
||||
xmlns:x="jelly:xml"
|
||||
xmlns:ant="jelly:ant">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-defaultgoal,test-wtpmodules,test-nowtpmodules">
|
||||
<goal name="testPlugin" prereqs="test-init,test-defaultgoal,test-wtpmodules-0.7,test-wtpmodules-1.5,test-nowtpmodules"/>
|
||||
|
||||
<goal name="test-init">
|
||||
<j:set var="wtpConfig0.7" value="${basedir}/.wtpmodules"/>
|
||||
<j:set var="wtpConfig1.5" value="${basedir}/.settings/org.eclipse.wst.common.component"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-init" prereqs="clean">
|
||||
<j:set var="dotWtpmodules" value="${basedir}/.wtpmodules"/>
|
||||
<attainGoal name="eclipse:clean"/>
|
||||
</goal>
|
||||
<goal name="test-clean" prereqs="clean,eclipse:clean"/>
|
||||
|
||||
<goal name="test-defaultgoal">
|
||||
<attainGoal name="test-init"/>
|
||||
<attainGoal name="test-clean"/>
|
||||
<attainGoal name="eclipse"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-nowtpmodules">
|
||||
<attainGoal name="test-init"/>
|
||||
<attainGoal name="test-clean"/>
|
||||
<j:set var="maven.eclipse.projectnatures" value="" />
|
||||
<attainGoal name="eclipse" />
|
||||
|
||||
<u:available file="${dotWtpmodules}">
|
||||
<u:available file="wtpConfig0.7">
|
||||
<ant:fail>The .wtpmodules file was created, and shouldn't have been.</ant:fail>
|
||||
</u:available>
|
||||
<u:available file="wtpConfig1.5">
|
||||
<ant:fail>The .settings/org.eclipse.wst.common.component file was created, and shouldn't have been.</ant:fail>
|
||||
</u:available>
|
||||
</goal>
|
||||
|
||||
<goal name="test-wtpmodules">
|
||||
<attainGoal name="test-init"/>
|
||||
|
||||
<goal name="test-wtpmodules-0.7">
|
||||
<attainGoal name="test-clean"/>
|
||||
<j:set var="maven.eclipse.wtp.version" value="0.7" />
|
||||
<attainGoal name="eclipse"/>
|
||||
<assert:assertFileExists file="${dotWtpmodules}" />
|
||||
|
||||
<u:file var="wtpmodulesFile" name="${dotWtpmodules}"/>
|
||||
<assert:assertFileExists file="${wtpConfig0.7}" />
|
||||
<u:file var="wtpmodulesFile" name="${wtpConfig0.7}"/>
|
||||
<x:parse var="wtpmodulesDoc" xml="${wtpmodulesFile.toURL()}" />
|
||||
</goal>
|
||||
|
||||
<goal name="test-wtpmodules-1.5">
|
||||
<attainGoal name="test-clean"/>
|
||||
<j:set var="maven.eclipse.wtp.version" value="1.5" />
|
||||
<attainGoal name="eclipse"/>
|
||||
<assert:assertFileExists file="${wtpConfig1.5}" />
|
||||
<u:file var="wtpmodulesFile" name="${wtpConfig1.5}"/>
|
||||
<x:parse var="wtpmodulesDoc" xml="${wtpmodulesFile.toURL()}" />
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user