<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yet Another JavaScript Blog &#187; super-source</title>
	<atom:link href="http://blog.echo-flow.com/category/super-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.echo-flow.com</link>
	<description>MODELLING AND SIMULATION, WEB ENGINEERING, USER INTERFACES</description>
	<lastBuildDate>Thu, 01 Dec 2011 00:37:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Summary of Some of the Pecularities Involving GWT Eclipse Tooling and Super-Source</title>
		<link>http://blog.echo-flow.com/2009/05/19/summary-of-some-of-the-pecularities-involving-gwt-eclipse-tooling-and-super-source/</link>
		<comments>http://blog.echo-flow.com/2009/05/19/summary-of-some-of-the-pecularities-involving-gwt-eclipse-tooling-and-super-source/#comments</comments>
		<pubDate>Tue, 19 May 2009 23:43:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[super-source]]></category>
		<category><![CDATA[tooling]]></category>

		<guid isPermaLink="false">http://blog.echo-flow.com/?p=14</guid>
		<description><![CDATA[I&#8217;ve been having some difficulties figuring out how to use the super-source tag for GWT&#8217;s module files. See the following forum posts for more background on this:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/933d511f524cc355/6c9216fd943e3f47?lnk=gst&#038;q=otakuj462#6c9216fd943e3f47http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/776660639069c8e9/98bc3c99c7a2848f?lnk=gst&#038;q=otakuj462#98bc3c99c7a2848f
In short, there is a kind of impedance mismatch between the functionality that GWT provides the functionality that GWT&#8217;s Eclipse tooling provides, at least with respect to super-source. Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having some difficulties figuring out how to use the super-source tag for GWT&#8217;s module files. See the following forum posts for more background on this:</p>
<p><a href="http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/933d511f524cc355/6c9216fd943e3f47?lnk=gst&#038;q=otakuj462#6c9216fd943e3f47">http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/933d511f524cc355/6c9216fd943e3f47?lnk=gst&#038;q=otakuj462#6c9216fd943e3f47</a><br /><a href="http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/776660639069c8e9/98bc3c99c7a2848f?lnk=gst&#038;q=otakuj462#98bc3c99c7a2848f">http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/776660639069c8e9/98bc3c99c7a2848f?lnk=gst&#038;q=otakuj462#98bc3c99c7a2848f</a></p>
<p>In short, there is a kind of impedance mismatch between the functionality that GWT provides the functionality that GWT&#8217;s Eclipse tooling provides, at least with respect to super-source. Here&#8217;s my understanding of how all of this breaks down: </p>
<p>1. You can use a package structure in which the native packages you would like to emulate (e.g. java.*) are prefixed by some other package (e.g. hack.java.io). So you might have a project structure that looks like this:</p>
<pre class="prettyprint">

testsuper/

        super/

                test/

                    TestSuper.gwt.xml

                test.hack.java.io/

                     OutputStream.java 
</pre>
<p>Your GWT module super-source tag would then use path=&#8221;hack&#8221;.<br />The package declaration in your emulated Java classes would then say &#8220;java.io&#8221; (no hack prefix!). </p>
<p>The Pros: This works great in both GWT hosted mode and compiled mode.<br />The Cons: The Eclipse IDE will think that something is wrong with your package declaration (it thinks it should be hack.java.io), and will give you errors. </p>
<p>2. You can use a package structure which does not use prefixed packages. So, you have something like:</p>
<pre class="prettyprint">

testsuper/

        super/

                test/

                    TestSuper.gwt.xml

                test.java.io/

                     OutputStream.java 
</pre>
<p>Your GWT module super-source tag would then use path=&#8221;".<br />The package declaration in your emulated Java classes would then say &#8220;java.io&#8221;, as per normal.</p>
<p>You then have two further possibilities:</p>
<p>2.a. Put super/ on the Eclipse build path. </p>
<p>The Pros: GWT Compilation mode works, and the Eclipse IDE doesn&#8217;t throw errors regarding packaging.<br />The Cons: GWT Hosted mode fails, ostensibly because it&#8217;s using the incorrect Java classes. In fact, I&#8217;m not really sure why GWT Hosted mode fails with this setup, but it surely does.</p>
<p>2.b. Do not put super/ on the Eclipse build path.</p>
<p>The Pros: GWT Hosted mode works (although you must set the runtime classpath to point to whatever dependencies TestSuper has; you set this as an Eclipse run configuration), and the Eclipse IDE doesn&#8217;t throw errors.<br />The Cons: GWT Compiled mode fails for the Eclipse GWT tooling, if you have projects that import this project, because the super/ folder is not on the Eclipse build path. If you were using Ant, this would not be a problem, because you can simply set the build-time classpath, but it does not seem to be possible to do this yet with the Eclipse tooling. Also, because super/ is not on the build path, you don&#8217;t get all of the advantages of the Java tooling that you would normally get from Eclipse.<br />Workaround: Use ant within Eclipse to Compile, and use regular GWT for Hosted mode. </p>
<p>It&#8217;s important to point out that all of these issues are related to the GWT Eclipse tooling, not GWT itself. Nevertheless, for my project, I am strongly dependent on Eclipse, so it is necessary for me to find the best way to resolve these issues. I&#8217;m not 100% certain about this, but at the moment, I feel like my best option is to go with option 2.b., so to stay in Eclipse, but move all of the build logic to Ant.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echo-flow.com/2009/05/19/summary-of-some-of-the-pecularities-involving-gwt-eclipse-tooling-and-super-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

