Initialer Commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ant/build.xml
|
||||
WebContent/WEB-INF/web.xml
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<file-systems application-name="" model-entity="FileSystems" WORKSPACE_HOME="./WebContent/WEB-INF">
|
||||
<file-system model-entity="FileSystemFolder" location="%workspace.home%" NAME="WEB-INF"/>
|
||||
<file-system model-entity="FileSystemFolder" INFO="Content-Type=Web"
|
||||
location="%workspace.home%/.." NAME="WEB-ROOT"/>
|
||||
<file-system model-entity="FileSystemFolder"
|
||||
location="%workspace.home%/../../JavaSource" NAME="src"/>
|
||||
<file-system model-entity="FileSystemFolder"
|
||||
location="%workspace.home%/lib" NAME="lib"/>
|
||||
<file-system model-entity="FileSystemFolder"
|
||||
location="%workspace.home%/classes" NAME="classes"/>
|
||||
<file-system model-entity="FileSystemFolder"
|
||||
location="%workspace.home%/../../ant" NAME="build"/>
|
||||
<WEB model-entity="JstWeb" MODEL_PATH="/web.xml">
|
||||
<MODULE model-entity="WebJSFModule" MODEL_PATH="/faces-config.xml"
|
||||
ROOT="WEB-ROOT" SRC="src" URI="/WEB-INF/faces-config.xml"/>
|
||||
</WEB>
|
||||
</file-systems>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
|
||||
<application>
|
||||
<locale-config/>
|
||||
</application>
|
||||
<factory/>
|
||||
<lifecycle/>
|
||||
</faces-config>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0"?>
|
||||
#if ($servlet_version == "2.4")
|
||||
<web-app version="2.4"
|
||||
xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
#elseif ($servlet_version == "2.5")
|
||||
<web-app version="2.5"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
#elseif ($servlet_version == "3.0")
|
||||
<web-app version="3.0"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
||||
#elseif ($servlet_version == "3.1")
|
||||
<web-app version="3.1"
|
||||
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
|
||||
#else
|
||||
<!DOCTYPE web-app PUBLIC
|
||||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||
<web-app>
|
||||
#end
|
||||
|
||||
<context-param>
|
||||
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
|
||||
<param-value>server</param-value>
|
||||
</context-param>
|
||||
|
||||
<listener>
|
||||
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!-- Faces Servlet -->
|
||||
<servlet>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
||||
<load-on-startup> 1 </load-on-startup>
|
||||
</servlet>
|
||||
|
||||
|
||||
<!-- Faces Servlet Mapping -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
</web-app>
|
||||
@@ -0,0 +1,87 @@
|
||||
<project name="$name" basedir="../" default="deploy">
|
||||
|
||||
<!-- Project settings -->
|
||||
<property name="project.distname" value="$name"/>
|
||||
|
||||
<!-- Local system paths -->
|
||||
<property file="${basedir}/ant/build.properties"/>
|
||||
<property name="webroot.dir" value="${basedir}/WebContent"/>
|
||||
<property name="webinf.dir" value="${webroot.dir}/WEB-INF"/>
|
||||
<property name="build.dir" value="build"/>
|
||||
|
||||
<!-- classpath for JSF 1.1.01 -->
|
||||
<path id="compile.classpath">
|
||||
<pathelement path ="${webinf.dir}/lib/commons-beanutils.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/commons-collections.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/commons-digester.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/commons-logging.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/jsf-api.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/jsf-impl.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/jstl.jar"/>
|
||||
<pathelement path ="${webinf.dir}/lib/standard.jar"/>
|
||||
<pathelement path ="${webinf.dir}/classes"/>
|
||||
<pathelement path ="${classpath.external}"/>
|
||||
<pathelement path ="${classpath}"/>
|
||||
</path>
|
||||
|
||||
<!-- define your folder for deployment -->
|
||||
<property name="deploy.dir" value="deploy"/>
|
||||
|
||||
|
||||
<!-- Check timestamp on files -->
|
||||
<target name="prepare">
|
||||
<tstamp/>
|
||||
</target>
|
||||
|
||||
<!-- Copy any resource or configuration files -->
|
||||
<target name="resources">
|
||||
<copy todir="${webinf.dir}/classes" includeEmptyDirs="no">
|
||||
<fileset dir="JavaSource">
|
||||
<patternset>
|
||||
<include name="**/*.conf"/>
|
||||
<include name="**/*.properties"/>
|
||||
<include name="**/*.xml"/>
|
||||
</patternset>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- Normal build of application -->
|
||||
<target name="compile" depends="prepare,resources">
|
||||
<javac srcdir="JavaSource" destdir="${webinf.dir}/classes">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- Remove classes directory for clean build -->
|
||||
<target name="clean"
|
||||
description="Prepare for clean build">
|
||||
<delete dir="${webinf.dir}/classes"/>
|
||||
<mkdir dir="${webinf.dir}/classes"/>
|
||||
</target>
|
||||
|
||||
<!-- Build entire project -->
|
||||
<target name="build" depends="prepare,compile"/>
|
||||
<target name="rebuild" depends="clean,prepare,compile"/>
|
||||
|
||||
<!-- Create binary distribution -->
|
||||
<target name="war" depends="build">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<war
|
||||
basedir="${webroot.dir}"
|
||||
warfile="${build.dir}/${project.distname}.war"
|
||||
webxml="${webinf.dir}/web.xml">
|
||||
<exclude name="WEB-INF/${build.dir}/**"/>
|
||||
<exclude name="WEB-INF/src/**"/>
|
||||
<exclude name="WEB-INF/web.xml"/>
|
||||
</war>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="war">
|
||||
<delete file="${deploy.dir}/${project.distname}.war"/>
|
||||
<delete dir="${deploy.dir}/${project.distname}"/>
|
||||
<copy file="${build.dir}/${project.distname}.war" todir="${deploy.dir}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user