allow specifying a certain type of separator - needed for IDEA plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2003-08-31 07:33:06 +00:00
parent d2b5274136
commit 88d4564581
2 changed files with 15 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<j:whitespace xmlns:j="jelly:core" xmlns="dummy" trim="true">
<j:whitespace xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns="dummy" trim="true">
<project version="3" relativePaths="false">
<component name="ProjectRootManager" version="2">
@ -11,12 +11,13 @@
</projectPath>
<sourcePath>
<root type="composite">
<!-- TODO... these won't work if absolute? -->
<j:if test="${sourcesPresent}">
<root type="simple" url="file://$$PROJECT_DIR$$/${pom.build.sourceDirectory}"/>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${pom.build.sourceDirectory}" separator="/" />
<root type="simple" url="file://$$PROJECT_DIR$$/${value}"/>
</j:if>
<j:if test="${unitTestSourcesPresent}">
<root type="simple" url="file://$$PROJECT_DIR$$/${pom.build.unitTestSourceDirectory}"/>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${pom.build.unitTestSourceDirectory}" separator="/" />
<root type="simple" url="file://$$PROJECT_DIR$$/${value}"/>
</j:if>
<root type="jdk" rootType="sourcePath" name="java version &quot;${java.version}&quot;"/>
</root>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<j:whitespace xmlns:j="jelly:core" xmlns="dummy" trim="true">
<j:whitespace xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns="dummy" trim="true">
<module version="4" relativePaths="false">
<component name="LvcsConfiguration">
@ -8,16 +8,19 @@
<option name="MARK_EXTERNAL_CHANGES_AS_UP_TO_DATE" value="true"/>
</component>
<component name="NewModuleRootManager">
<!-- TODO: use maven.build.dest and maven.test.dest -->
<output url="file://$MODULE_DIR$/target/classes"/>
<output-test url="file://$MODULE_DIR$/target/test-classes"/>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${maven.build.dest}" separator="/" />
<output url="file://$$MODULE_DIR$$/${value}"/>
<!-- @todo - use maven.test.dest instead -->
<maven:makeRelativePath var="value" basedir="${basedir}" path="${maven.build.dir}" separator="/" />
<output-test url="file://$$MODULE_DIR$$/${value}/test-classes"/>
<content url="file://$MODULE_DIR$">
<!-- TODO... these won't work if absolute? -->
<j:if test="${sourcesPresent}">
<sourceFolder url="file://$$MODULE_DIR$$/${pom.build.sourceDirectory}" isTestSource="false"/>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${pom.build.sourceDirectory}" separator="/" />
<sourceFolder url="file://$$MODULE_DIR$$/${value}" isTestSource="false"/>
</j:if>
<j:if test="${unitTestSourcesPresent}">
<sourceFolder url="file://$$MODULE_DIR$$/${pom.build.unitTestSourceDirectory}" isTestSource="true"/>
<maven:makeRelativePath var="value" basedir="${basedir}" path="${pom.build.unitTestSourceDirectory}" separator="/" />
<sourceFolder url="file://$$MODULE_DIR$$/${value}" isTestSource="true"/>
</j:if>
</content>
<orderEntry type="jdk" jdkName="java version &quot;${java.version}&quot;"/>