]> source.dussan.org Git - vaadin-framework.git/commitdiff
packaging fixes, hosted mode for linux should work too
authorJani Laakso <jani.laakso@itmill.com>
Tue, 4 Dec 2007 16:24:00 +0000 (16:24 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Tue, 4 Dec 2007 16:24:00 +0000 (16:24 +0000)
svn changeset:3154/svn branch:trunk

build/build.xml
build/package/eclipse-IT Mill Toolkit Hosted Mode-launch

index 590a2e16e2ff904995555e02dcf9580957c850c0..b162c25abccc720c73cec76f21947de35b8e64c8 100644 (file)
@@ -41,7 +41,7 @@
        <target name="package-linux" depends="clean-all, init, build, docs, internal-package-linux" description="Create public tar.bz2 package for Linux.">
        </target>
 
-       <target name="package-jar-war" depends="clean-all, init, build" description="Create itmill-toolkit-x.y.z.jar and war file.">
+       <target name="package-jar" depends="clean-all, init, build" description="Create itmill-toolkit-x.y.z.jar file.">
        </target>
 
        <!-- internal tests for packaging -->
 
                <!-- Destination files -->
                <property name="lib-jar-name" value="${product-file}-${version}.jar" />
-               <property name="demo-war-name" value="${product-file}-demo-${version}.war" />
 
                <echo message="Prepared to build ${product-file} version ${version} packages" />
 
                <mkdir dir="${output-dir}/WebContent/doc/api" />
                <mkdir dir="${output-dir}/WebContent/doc/example-source" />
                <mkdir dir="${output-dir}/WebContent/WEB-INF" />
+               <mkdir dir="${output-dir}/WebContent/WEB-INF/lib" />
                <mkdir dir="${output-dir}/WebContent/WEB-INF/classes" />
 
                <!-- Construct classpath used by java and javadoc compilation -->
                                <exclude name="**/.svn" />
                                <include name="release-notes.html" />
                                <include name="*.html" />
-                               <include name="license/*.html" />
+                               <include name="license/licensing-guidelines.html" />
                        </fileset>
                </copy>
                <delete includeemptydirs="true" defaultexcludes="false">
                <copy todir="${output-dir}/WebContent">
                        <fileset dir="WebContent">
                                <exclude name="**/.svn" />
-                               <exclude name="openajax/**" />
-                               <exclude name="WEB-INF/web.xml" />
-                               <exclude name="ITMILL/widgetsets/**" />
-                               <exclude name="WEB-INF/lib/commons-fileupload-custom.jar" />
-                               <exclude name="ITMILL/themes/test*/**" />
-                               <exclude name="WEB-INF/classes/**" />
+                               <include name="demo/**/*" />
+                               <include name="META-INF/**/*" />
                        </fileset>
                </copy>
-
+               
                <!-- Add package specific WebContent files from build/package/WebContent -->
                <copy todir="${output-dir}/WebContent">
                        <fileset dir="build/package/WebContent">
                                </patternset>
                        </fileset>
                </jar>
+               <copy file="${output-dir}/WebContent/WEB-INF/lib/${lib-jar-name}" tofile="${output-dir}/WebContent/${lib-jar-name}" />
        </target>
 
        <!-- Demo  - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-       <target name="demo" depends="libs, javadoc">
+       <target name="demo" depends="libs, docs">
                <echo>Building demo</echo>
                <echo>Adding demo class files.</echo>
                <copy todir="${output-dir}/WebContent/WEB-INF/classes">
                                <include name="${toolkit-package}/launcher/**" />
                        </fileset>
                </copy>
-
+               
+               <!--
                <echo>Building WAR</echo>
-               <war warfile="${output-dir}/WebContent/demo/${product-file}.war">
+               <war warfile="${output-dir}/${product-file}.war">
                        <fileset dir="${output-dir}/WebContent">
                                <include name="**/*" />
                        </fileset>
                                <include name="${lib-jar-name}" />
                        </lib>
                </war>
+               -->
        </target>
 
        <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
index 90346b43f8b3bbd51b94a6e8041374fab2274da8..637ab7b1aa7f979bff0e688cb21dc4e9826eff20 100644 (file)
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
-<stringAttribute key="bad_container_name" value="/<eclipse-workspace-name></eclipse-workspace-name>/IT_Mill_Toolkit_Hosted_Mode.launch"/>
-<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="bad_container_name" value="/<eclipse-workspace-name></eclipse-workspace-name>/IT Mill Toolkit Hosted Mode.launch"/>
 <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
 <listEntry value="/<eclipse-workspace-name></eclipse-workspace-name>/gwt/gwt-dev-<platform></platform>.jar"/>
 </listAttribute>
 <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
 <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
 </listAttribute>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;<eclipse-workspace-name></eclipse-workspace-name>&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/<eclipse-workspace-name></eclipse-workspace-name>/WebContent/WEB-INF/src&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;<eclipse-workspace-name></eclipse-workspace-name>&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
 <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.google.gwt.dev.GWTShell"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-noserver -whitelist &quot;127.0.0.1  ^http[:][/][/]127[.]0[.]0[.]1[:]8888&quot; -out WebContent/ITMILL/widgetsets http://127.0.0.1:8888/"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="<eclipse-workspace-name></eclipse-workspace-name>"/>