<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=Netbeans%3ANetbeansGWTDeploy</id>
	<title>Netbeans:NetbeansGWTDeploy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=Netbeans%3ANetbeansGWTDeploy"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=Netbeans:NetbeansGWTDeploy&amp;action=history"/>
	<updated>2026-04-06T02:33:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/adapt/index.php?title=Netbeans:NetbeansGWTDeploy&amp;diff=1957&amp;oldid=prev</id>
		<title>Scsong at 23:04, 11 September 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=Netbeans:NetbeansGWTDeploy&amp;diff=1957&amp;oldid=prev"/>
		<updated>2008-09-11T23:04:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:04, 11 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Build the project, copy the generated WAR file in &amp;#039;&amp;#039;dist&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;webapps&amp;#039;&amp;#039; directory and meow like a tomcat.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Build the project, copy the generated WAR file in &amp;#039;&amp;#039;dist&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;webapps&amp;#039;&amp;#039; directory and meow like a tomcat.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For more information: [[media:gwt-tutorial-3.tar.gz|GWT Tutorial 3]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Scsong</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/adapt/index.php?title=Netbeans:NetbeansGWTDeploy&amp;diff=1956&amp;oldid=prev</id>
		<title>Scsong at 23:03, 11 September 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=Netbeans:NetbeansGWTDeploy&amp;diff=1956&amp;oldid=prev"/>
		<updated>2008-09-11T23:03:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Production Deployment==&lt;br /&gt;
&lt;br /&gt;
===Compiling Java to Javascript===&lt;br /&gt;
&lt;br /&gt;
Add the following target to the &amp;#039;&amp;#039;build.xml&amp;#039;&amp;#039; file to compile the Java files into &amp;lt;nowiki&amp;gt;JavaScript&amp;lt;/nowiki&amp;gt;...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-compile-to-javascript&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;echo message=&amp;quot;Compiling Java to JavaScript&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;java classpath=&amp;quot;${run.classpath}:${basedir}/src&amp;quot; &lt;br /&gt;
         classname=&amp;quot;com.google.gwt.dev.GWTCompiler&amp;quot; &lt;br /&gt;
         fork=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;arg value=&amp;quot;-out&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;arg path=&amp;quot;${build.dir}/www/&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;arg value=&amp;quot;${application.args}&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;arg value=&amp;quot;edu.umiacs.gwt.hello.HelloWorld&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/java&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...replacing the last argument with the root package name and module name. &lt;br /&gt;
&lt;br /&gt;
Add the following target to call the target just created:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-post-jar&amp;quot; depends=&amp;quot;-compile-to-javascript&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Web distribution directory===&lt;br /&gt;
&lt;br /&gt;
Build the project and look in the &amp;#039;&amp;#039;build/www&amp;#039;&amp;#039; directory to see what has been created. Now create a target to make a distribution copy of what was built. The distribution copy will be identical to the build copy except for the following changes: The parent directory &amp;#039;&amp;#039;edu.umiacs.gwt.hello.HelloWorld&amp;#039;&amp;#039; will also be renamed to &amp;#039;&amp;#039;hello-world&amp;#039;&amp;#039; and the &amp;#039;&amp;#039;HelloWorld.html&amp;#039;&amp;#039; file will be renamed to &amp;#039;&amp;#039;index.html&amp;#039;&amp;#039;. Add the following target and put in any additional cleanup tasks here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-www-dist&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;copy todir=&amp;quot;${basedir}/dist/hello-world&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;fileset dir=&amp;quot;${basedir}/build/www/edu.umiacs.gwt.hello.HelloWorld&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/copy&amp;gt;&lt;br /&gt;
   &amp;lt;move file=&amp;quot;${basedir}/dist/hello-world/HelloWorld.html&amp;quot; &lt;br /&gt;
         toFile=&amp;quot;${basedir}/dist/hello-world/index.html&amp;quot;/&amp;gt;    &lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the &amp;#039;&amp;#039;-post-jar&amp;#039;&amp;#039; target to depend on this new target:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-post-jar&amp;quot; depends=&amp;quot;-compile-to-javascript,-www-dist&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Build the project, and using your web browser of choice, open up the &amp;#039;&amp;#039;index.html&amp;#039;&amp;#039; file in &amp;#039;&amp;#039;dist/hello-world&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
===Creating a WAR file===&lt;br /&gt;
&lt;br /&gt;
In the root package, create a &amp;#039;&amp;#039;web.xml&amp;#039;&amp;#039; file that contains the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;web-app&amp;gt;&lt;br /&gt;
&amp;lt;/web-app&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new target to build the WAR file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-war-dist&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;war destfile=&amp;quot;dist/hello-world.war&amp;quot; webxml=&amp;quot;src/edu/umiacs/gwt/hello/web.xml&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;fileset dir=&amp;quot;dist/hello-world&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/war&amp;gt;        &lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Modify the &amp;#039;&amp;#039;-post-jar&amp;#039;&amp;#039; target to depend on this new target:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;target name=&amp;quot;-post-jar&amp;quot; depends=&amp;quot;-compile-to-javascript,-www-dist,-war-dist&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Build the project, copy the generated WAR file in &amp;#039;&amp;#039;dist&amp;#039;&amp;#039; to a &amp;#039;&amp;#039;webapps&amp;#039;&amp;#039; directory and meow like a tomcat.&lt;/div&gt;</summary>
		<author><name>Scsong</name></author>
	</entry>
</feed>