[jboss-cvs] jboss-seam/examples/wiki ...

Christian Bauer christian.bauer at jboss.com
Thu Feb 1 02:08:25 EST 2007


  User: cbauer  
  Date: 07/02/01 02:08:25

  Added:       examples/wiki       .project .classpath build.xml
                        .exploded.launch README.txt build.properties
  Log:
  Committed first (broken) wiki implementation
  
  Revision  Changes    Path
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/.project
  
  Index: .project
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <projectDescription>
  	<name>wiki</name>
  	<comment></comment>
  	<projects>
  	</projects>
  	<buildSpec>
  		<buildCommand>
  			<name>org.eclipse.jdt.core.javabuilder</name>
  			<arguments>
  			</arguments>
  		</buildCommand>
  		<buildCommand>
  			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
  			<triggers>auto,full,incremental,</triggers>
  			<arguments>
  				<dictionary>
  					<key>LaunchConfigHandle</key>
  					<value>&lt;project&gt;/.exploded.launch</value>
  				</dictionary>
  			</arguments>
  		</buildCommand>
  	</buildSpec>
  	<natures>
  		<nature>org.eclipse.jdt.core.javanature</nature>
  	</natures>
  </projectDescription>
  
  
  
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/.classpath
  
  Index: .classpath
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <classpath>
  	<classpathentry kind="src" path="src"/>
      <classpathentry kind="src" path="test"/>
  	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
  	<classpathentry kind="lib" path="embedded-ejb/conf"/>
  	<classpathentry kind="lib" path="resources"/>
  	<classpathentry kind="lib" path="lib/commons-beanutils-1.7.0.jar"/>
  	<classpathentry kind="lib" path="lib/commons-codec-1.3.jar"/>
  	<classpathentry kind="lib" path="lib/commons-collections-3.1.jar"/>
  	<classpathentry kind="lib" path="lib/commons-digester-1.6.jar"/>
  	<classpathentry kind="lib" path="lib/commons-el-1.0.jar"/>
  	<classpathentry kind="lib" path="lib/commons-lang-2.1.jar"/>
  	<classpathentry kind="lib" path="lib/hibernate-all.jar"/>
  	<classpathentry kind="lib" path="lib/javax.servlet.jsp.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-aop-jdk50.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-cache-jdk50.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-ejb3-all.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-seam.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-seam-debug.jar"/>
  	<classpathentry kind="lib" path="lib/jboss-seam-ui.jar"/>
  	<classpathentry kind="lib" path="lib/jbpm-3.1.2.jar"/>
  	<classpathentry kind="lib" path="lib/jgroups.jar"/>
  	<classpathentry kind="lib" path="lib/jsf-facelets.jar"/>
  	<classpathentry kind="lib" path="lib/jstl-1.1.0.jar"/>
  	<classpathentry kind="lib" path="lib/myfaces-api-1.1.4.jar"/>
  	<classpathentry kind="lib" path="lib/servlet-api.jar"/>
  	<classpathentry kind="lib" path="lib/testng-4.5.1-jdk15.jar"/>
  	<classpathentry kind="lib" path="lib/thirdparty-all.jar"/>
  	<classpathentry kind="lib" path="lib/el-api.jar"/>
  	<classpathentry kind="lib" path="lib/el-ri.jar"/>
  	<classpathentry kind="lib" path="lib/hsqldb.jar"/>
  	<classpathentry kind="output" path="exploded-archives/wiki.jar"/>
  </classpath>
  
  
  
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="wiki" default="deploy" basedir=".">
  
  	<!-- Give user a chance to override without editing this file or typing -D -->
  	<property file="${basedir}/build.properties" />
  
  	<!-- set global properties for this build -->
  	<property name="project.name" value="wiki"/>
  	<property name="dist.dir" value="dist" />
  	<property name="src.java.dir" value="src" />
  	<property name="src.test.dir" value="test" />
  	<property name="lib.dir" value="../../lib" />
      <property name="seamlibs.dir" value="../../"/>
      <property name="ear.dir" value="exploded-archives/${project.name}.ear" />
  	<property name="jar.dir" value="exploded-archives/${project.name}.jar" />
  	<property name="war.dir" value="exploded-archives/${project.name}.war" />
  	<property name="test.dir" value="test-build" />
  	<property name="embedded-ejb3.dir" value="${basedir}/embedded-ejb/conf" />
  	<property name="deploy.dir" value="${jboss.home}/server/default/deploy" />
  	<property name="ear.deploy.dir" value="${deploy.dir}/${project.name}.ear" />
  	<property name="jar.deploy.dir" value="${ear.deploy.dir}/${project.name}.jar" />
  	<property name="war.deploy.dir" value="${ear.deploy.dir}/${project.name}.war" />
  	<property name="testng.jar" value="${lib.dir}/testng-4.5.1-jdk15.jar" />
  	<property name="javac.debug" value="true" />
  	<property name="javac.deprecation" value="false" />
  	<property name="profile" value="dev" />
  
  	<fileset id="lib" dir="${lib.dir}">
  		<include name="*.jar" />
      </fileset>
  
      <fileset id="seamlibs" dir="${seamlibs.dir}">
          <include name="jboss-seam*.jar"/>
      </fileset>
  
      <path id="build.classpath">
  		<fileset refid="lib" />
          <fileset refid="seamlibs"/>
  	</path>
  
  	<target name="init" description="Initialize the build">
          <mkdir dir="${jar.dir}" />
  		<mkdir dir="${ear.dir}" />
  		<mkdir dir="${war.dir}" />
  		<mkdir dir="${dist.dir}" />
  	</target>
  
  	<target name="compile" depends="init" 
  			description="Compile the Java source code" 
  			unless="eclipse.running">
  		<javac classpathref="build.classpath" 
  			        destdir="${jar.dir}" 
  			          debug="${javac.debug}" 
  			    deprecation="${javac.deprecation}" 
  			        nowarn="on">
  			<src path="${src.java.dir}" />
  		</javac>
  	</target>
  
  	<target name="jar" depends="compile" 
  			description="Build the distribution .jar file">
  		<copy todir="${jar.dir}">
  			<fileset dir="${basedir}/resources">
  				<include name="seam.properties" />
  			</fileset>
  		</copy>
  		<copy todir="${jar.dir}/META-INF">
  			<fileset dir="${basedir}/resources/META-INF">
  				<include name="ejb-jar.xml" />
                  <include name="wiki.taglib.xml" />
  			</fileset>
  		</copy>
  		<copy tofile="${jar.dir}/META-INF/persistence.xml" 
  			    file="${basedir}/resources/META-INF/persistence-${profile}.xml"
  		   overwrite="true"/>
  		<copy tofile="${jar.dir}/import.sql" 
  			    file="${basedir}/resources/import-${profile}.sql"
  		   overwrite="true"/>
  	</target>
  
  	<target name="war" depends="compile" 
  			description="Build the distribution .war file">
  		<copy todir="${war.dir}">
  			<fileset dir="${basedir}/view" />
  		</copy>
  		<copy todir="${war.dir}/WEB-INF">
  			<fileset dir="${basedir}/resources/WEB-INF">
  				<include name="*.*"/>
  				<include name="classes/**/*.*"/>
  				<exclude name="classes/**/*.class"/>
  			</fileset>
  			<filterset>
  				<filter token="jndiPattern" value="${project.name}/#{ejbName}/local" />
  				<filter token="embeddedEjb" value="false" />
  			</filterset>
  		</copy>		
  		<copy todir="${war.dir}/WEB-INF">
  			<fileset dir="${basedir}/resources/WEB-INF">
  				<include name="lib/*.*"/>
  				<include name="classes/**/*.class"/>
  			</fileset>
  		</copy>		
  		<copy todir="${war.dir}/WEB-INF/lib">
  			<fileset dir="${lib.dir}">
  				<include name="jsf-facelets.jar" />
  			</fileset>
              <fileset dir="${seamlibs.dir}">
                  <include name="jboss-seam-debug.jar" />
                  <include name="jboss-seam-ui.jar" />
              </fileset>
          </copy>
  		<copy todir="${war.dir}/WEB-INF/classes">
  			<fileset dir="${basedir}/resources"> 
  				<include name="messages*.properties"/>
  			</fileset>
  		</copy>
  	</target>
  
  	<target name="ear" description="Build the EAR">
  		<copy todir="${ear.dir}">
  			<fileset dir="${basedir}/resources">
  				<include name="*jpdl.xml" />
  				<include name="hibernate.cfg.xml" />
  				<include name="jbpm.cfg.xml" />
  			</fileset>
  			<fileset dir="${lib.dir}">
  				<include name="jbpm*.jar" />
  				<include name="el-*.jar" />
  			</fileset>
              <fileset dir="${seamlibs.dir}">
                  <include name="jboss-seam.jar" />
              </fileset>
  		</copy>
  		<copy todir="${ear.dir}/META-INF">
  			<fileset dir="${basedir}/resources/META-INF">
  				<include name="application.xml" />
  				<include name="jboss-app.xml" />
  			</fileset>
  		</copy>
  	</target>
  	
  	<target name="archive" depends="jar,war,ear" 
  			description="Package the archives">
  		<jar jarfile="${dist.dir}/${project.name}.jar" basedir="${jar.dir}"/>
  		<jar jarfile="${dist.dir}/${project.name}.war" basedir="${war.dir}"/>
  		<jar jarfile="${dist.dir}/${project.name}.ear">
  			<fileset dir="${ear.dir}"/>
  			<fileset dir="${dist.dir}">
  				<include name="${project.name}.jar"/>
  				<include name="${project.name}.war"/>
  			</fileset>
  		</jar>
  	</target>
  	
  	<target name="datasource">
  		<fail unless="jboss.home">jboss.home not set</fail>
  		<copy todir="${deploy.dir}">
  			<fileset dir="${basedir}/resources">
  				<include name="${project.name}-${profile}-ds.xml" />
  			</fileset>
  		</copy>
  	</target>
  	
  	<target name="explode" depends="jar,war,ear,datasource" 
  			description="Deploy the exploded archive">
  		<fail unless="jboss.home">jboss.home not set</fail>
  		
  		<mkdir dir="${jar.deploy.dir}"/>
  		<mkdir dir="${war.deploy.dir}"/>		
  		
  		<copy todir="${jar.deploy.dir}">
  			<fileset dir="${jar.dir}"/>
  		</copy>
  		<copy todir="${war.deploy.dir}">
  			<fileset dir="${war.dir}"/>
  		</copy>
  		<copy todir="${ear.deploy.dir}">
  			<fileset dir="${ear.dir}"/>
  		</copy>
  	</target>
  
  	<target name="unexplode" description="Undeploy the exploded archive">
  		<delete failonerror="no">
  			<fileset dir="${ear.deploy.dir}">
  				<exclude name="**/*.jar"/>
  			</fileset>
  		</delete>
  		<delete file="${deploy.dir}/${project.name}-ds.xml" failonerror="no"/>
  		<delete dir="${ear.deploy.dir}" failonerror="no"/>
  	</target>
  	
  	<target name="restart" depends="explode" description="Restart the exploded archive">
  		<touch file="${ear.deploy.dir}/META-INF/application.xml"/>
  	</target>
  
  	<target name="deploy" depends="archive,datasource" description="Deploy to JBoss AS">
  		<fail unless="jboss.home">jboss.home not set</fail>
  		<copy todir="${deploy.dir}" file="${dist.dir}/${project.name}.ear" />
  	</target>
  
  	<target name="undeploy" description="Undeploy the example from JBoss">
  		<delete file="${deploy.dir}/${project.name}.ear" />
  		<delete file="${deploy.dir}/${project.name}-dev-ds.xml" />
  		<delete file="${deploy.dir}/${project.name}-prod-ds.xml" />
  	</target>
  
  	<target name="clean" description="Cleans up the build directory">
  		<delete dir="${dist.dir}" />
  		<delete dir="${test.dir}" />
  		<delete dir="${ear.dir}" />
  		<delete dir="${war.dir}" />
  		<delete>
  			<fileset dir="${jar.dir}">
  				<exclude name="**/*.class" if="eclipse.running"/>
  			</fileset>
  		</delete>
  	</target>
  
  	<target name="test" depends="jar,war,ear" description="Run the tests">
  
          <mkdir dir="${test.dir}"/>
          <javac classpathref="build.classpath"
                          destdir="${test.dir}"
                            debug="${javac.debug}"
                      deprecation="${javac.deprecation}"
                          nowarn="on">
                  <src path="${src.java.dir}" />
                  <src path="${src.test.dir}" />
          </javac>
  		<copy todir="${test.dir}">
  			<fileset dir="${basedir}/resources" />
  		</copy>
  		<copy todir="${test.dir}" flatten="true">
  			<fileset dir="${src.test.dir}">
  				<include name="**/*Test.xml" />
  			</fileset>
  		</copy>
  		
  		<taskdef resource="testngtasks" classpath="${testng.jar}" />
  		<testng outputdir="${basedir}/testng-report">
  			<classpath path="${test.dir}" />
  			<classpath path="${embedded-ejb3.dir}" />
  			<classpath refid="build.classpath" />
  			<xmlfileset dir="${test.dir}" includes="*Test.xml" />
  		</testng>
  		
  	</target>
  
  </project>
  
  
  
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/.exploded.launch
  
  Index: .exploded.launch
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
  	<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
  	<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
  	<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
  	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="clean,unexplode,restart,"/>
  	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,"/>
  	<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
  		<listEntry value="1"/>
  	</listAttribute>
  	<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
  	<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
  	<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
  	<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
  	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="clean,unexplode,restart,"/>
  	<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="explode,"/>
  	<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="wiki"/>
  	<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
  		<listEntry value="/wiki/build.xml"/>
  	</listAttribute>
  	<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/wiki/build.xml}"/>
  </launchConfiguration>
  
  
  
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/README.txt
  
  Index: README.txt
  ===================================================================
  This is not a regular "Seam example", its a standalone seam-gen project structure. The build.xml
  references the existing Seam libraries and thirdparty libs, however, to avoid duplication.
  
  This is configured for standalone HSQL DB on localhost (I like being able to acces
  the database with a SQL client). So start it with 'java -cp hsqldb.jar org.hsqldb.Server'
  before deploying.
  
  The start document is hardcoded in index.html to be one of the records from import.sql. Don't use
  '1' as the start document, this is the special wiki root directory.
  
  
  
  1.1      date: 2007/02/01 07:08:25;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/build.properties
  
  Index: build.properties
  ===================================================================
  jboss.home = /Users/turin/work/local/jboss/jboss-4.0.5.GA
  
  



More information about the jboss-cvs-commits mailing list