Files
maven-plugins/idea/src/plugin-resources/templates/v4/module.jelly
T
2004-03-04 18:15:20 +00:00

65 lines
3.0 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/*
* Copyright 2001-2004 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<j:whitespace xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns="dummy" trim="true">
<module version="4" relativePaths="false">
<component name="LvcsConfiguration">
<option name="LOCAL_VCS_ENABLED" value="true"/>
<option name="LOCAL_VCS_PURGING_PERIOD" value="259200000"/>
<option name="MARK_EXTERNAL_CHANGES_AS_UP_TO_DATE" value="true"/>
</component>
<component name="NewModuleRootManager">
<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$">
<j:if test="${sourcesPresent}">
<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}">
<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;"/>
<orderEntry type="sourceFolder" forTests="false"/>
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<j:if test="${dep.type=='jar'}">
<orderEntry type="module-library">
<library name="${dep.artifactId}">
<CLASSES>
<root url="jar://${lib.path}!/"/>
</CLASSES>
<JAVADOC/>
<SOURCES/>
</library>
</orderEntry>
</j:if>
</j:forEach>
</component>
<component name="ModuleRootManager"/>
</module>
</j:whitespace>