[jboss-cvs] jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear ...
Thomas Heute
theute at jboss.com
Thu Aug 10 08:55:20 EDT 2006
User: theute
Date: 06/08/10 08:55:20
Added: src/org/jboss/seam/tools/freemarker/templates/ear
application.xml.ftl eclipse.component.ftl
eclipse.project.ftl jboss-app.xml.ftl pom.xml.ftl
org.eclipse.wst.common.project.facet.core.xml.ftl
Log:
Use resource classloading instead of simple directories
Revision Changes Path
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/application.xml.ftl
Index: application.xml.ftl
===================================================================
<application>
<display-name>${earContext.displayName}</display-name>
<#list utilityJars as jar>
<module>
<java>${jar.filename}</java>
</module>
</#list>
<#list webProjects as webModule>
<module<#if context.eclipseSupport> id="${webModule.webContext.id}"</#if>>
<web>
<web-uri>${webModule.filename}</web-uri>
<context-root>${webModule.webContext.contextRoot}</context-root>
</web>
</module>
</#list>
<#list ejbProjects as ejbModule>
<module<#if context.eclipseSupport> id="${ejbModule.ejbContext.id}"</#if>>
<ejb>${ejbModule.filename}</ejb>
</module>
</#list>
</application>
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/eclipse.component.ftl
Index: eclipse.component.ftl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="${projectName}">
<wb-resource deploy-path="/" source-path="/${earContext.contentDirectory}"/>
<#list ejbProjects as ejbProject>
<dependent-module deploy-path="/" handle="module:/resource/${ejbProject.projectName}/${ejbProject.projectName}">
<dependent-object>${ejbProject.ejbContext.id}</dependent-object>
<dependency-type>uses</dependency-type>
</dependent-module>
</#list>
<#list webProjects as webProject>
<dependent-module deploy-path="/" handle="module:/resource/${webProject.projectName}/${webProject.projectName}">
<dependent-object>${webProject.webContext.id}</dependent-object>
<dependency-type>uses</dependency-type>
</dependent-module>
</#list>
</wb-module>
</project-modules>
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/eclipse.project.ftl
Index: eclipse.project.ftl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>${projectName}</name>
<comment></comment>
<projects>
<#list ejbProjects as ejbProject>
<project>${ejbProject.projectName}</project>
</#list>
<#list webProjects as webProject>
<project>${webProject.projectName}</project>
</#list>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
</natures>
</projectDescription>
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/jboss-app.xml.ftl
Index: jboss-app.xml.ftl
===================================================================
<jboss-app>
<loader-repository>
${context.isolationClassLoadingName}
</loader-repository>
</jboss-app>
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/pom.xml.ftl
Index: pom.xml.ftl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>${earContext.groupId}</groupId>
<artifactId>${earContext.artifactId}</artifactId>
<version>${earContext.version}</version>
<packaging>ear</packaging>
<description/>
<repositories>
<repository>
<id>jboss</id>
<name>JBoss repository</name>
<url>http://repository.jboss.com/maven2</url>
</repository>
</repositories>
<parent>
<groupId>${rootContext.groupId}</groupId>
<artifactId>${rootContext.artifactId}</artifactId>
<version>${rootContext.version}</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<modules>
<webModule>
<groupId>example</groupId>
<artifactId>seam-booking-war</artifactId>
<contextRoot>/seam-booking</contextRoot>
</webModule>
<ejbModule>
<groupId>example</groupId>
<artifactId>seam-booking-jar</artifactId>
</ejbModule>
<javaModule>
<groupId>jboss</groupId>
<artifactId>jboss-seam</artifactId>
<bundleDir>/</bundleDir>
<includeInApplicationXml>true</includeInApplicationXml>
</javaModule>
</modules>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>example</groupId>
<artifactId>seam-booking-war</artifactId>
<version>0.0.1</version>
<type>war</type>
</dependency>
<dependency>
<groupId>example</groupId>
<artifactId>seam-booking-jar</artifactId>
<version>0.0.1</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-seam</artifactId>
<version>1.0.1.GA</version>
</dependency>
</dependencies>
</project>
1.1 date: 2006/08/10 12:55:20; author: theute; state: Exp;jboss-seam-tools/src/org/jboss/seam/tools/freemarker/templates/ear/org.eclipse.wst.common.project.facet.core.xml.ftl
Index: org.eclipse.wst.common.project.facet.core.xml.ftl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.ear"/>
<installed facet="jst.ear" version="1.4"/>
</faceted-project>
More information about the jboss-cvs-commits
mailing list