Reorganize GWT stuff into a reusable module and one application module.

This commit is contained in:
bjorn
2008-10-22 09:36:05 +00:00
parent c72ee23d85
commit e21f64ab09
12 changed files with 30 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
GFCFLAGS = +RTS -K100M -RTS --cpu
.PHONY: pgf.fcgi run
.PHONY: pgf.fcgi run gf-gwt.jar
pgf.fcgi:
cabal install
@@ -35,7 +35,7 @@ test.pgf: LangEng-parse.pgf LangGer-parse.pgf
run: pgf.fcgi
@echo '*********************************************'
@echo 'See http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt_translate.Translate/Translate.html'
@echo 'See http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html'
@echo '*********************************************'
lighttpd -f lighttpd.conf -D
@@ -47,6 +47,9 @@ gwt-installball: pgf.fcgi gwt
mv tmp/gwt-client/Translate.html tmp/gwt-client/index.html
(cd tmp && tar -zcf ../gwt-client-installball.tar.gz gwt-client)
gf-gwt.jar:
jar -cf $@ -C gwt-client/src se
clean:
cabal clean
-rm -f pgf.fcgi

View File

@@ -1,3 +1,3 @@
#!/bin/sh
APPDIR=`dirname $0`;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt_translate.Translate;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt.TranslateApp;

View File

@@ -1,3 +1,3 @@
#!/bin/sh
APPDIR=`dirname $0`;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt_translate.Translate/Translate.html;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" se.chalmers.cs.gf.gwt.TranslateApp/Translate.html;

View File

@@ -1,3 +1,3 @@
#!/bin/sh
APPDIR=`dirname $0`;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" -noserver "$@" http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt_translate.Translate/Translate.html;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/Users/bringert/src/gwt-mac-1.5.2/gwt-user.jar:/Users/bringert/src/gwt-mac-1.5.2/gwt-dev-mac.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" -noserver "$@" http://localhost:41296/gwt-client/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html;

View File

@@ -0,0 +1,8 @@
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.http.HTTP" />
<inherits name="com.google.gwt.json.JSON" />
</module>

View File

@@ -1,24 +1,24 @@
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.http.HTTP" />
<inherits name="com.google.gwt.json.JSON" />
<inherits name="com.google.gwt.user.User" />
<inherits name="se.chalmers.cs.gf.gwt.Translate" />
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<inherits name="com.google.gwt.user.theme.standard.Standard"/>
<!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> -->
<!-- <inherits name="com.google.gwt.user.theme.dark.Dark"/> -->
<!-- Other module inherits -->
<!-- Specify the app entry point class. -->
<entry-point class='se.chalmers.cs.gf.gwt_translate.client.Translate'/>
<entry-point class="se.chalmers.cs.gf.gwt.client.TranslateApp" />
<!-- Specify the application specific style sheet. -->
<stylesheet src='Translate.css' />
<stylesheet src="Translate.css" />
</module>

View File

@@ -1,4 +1,4 @@
package se.chalmers.cs.gf.gwt_translate.client;
package se.chalmers.cs.gf.gwt.client;
import com.google.gwt.user.client.ui.SuggestOracle;

View File

@@ -1,4 +1,4 @@
package se.chalmers.cs.gf.gwt_translate.client;
package se.chalmers.cs.gf.gwt.client;
import com.google.gwt.http.client.*;
import com.google.gwt.core.client.GWT;

View File

@@ -1,4 +1,4 @@
package se.chalmers.cs.gf.gwt_translate.client;
package se.chalmers.cs.gf.gwt.client;
import com.google.gwt.http.client.*;

View File

@@ -1,4 +1,4 @@
package se.chalmers.cs.gf.gwt_translate.client;
package se.chalmers.cs.gf.gwt.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
@@ -28,7 +28,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class Translate implements EntryPoint {
public class TranslateApp implements EntryPoint {
private static final String gfBaseURL = "/pgf";
private static final String pgfName = "grammar.pgf";

View File

@@ -19,7 +19,7 @@
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" language="javascript" src="se.chalmers.cs.gf.gwt_translate.Translate.nocache.js"></script>
<script type="text/javascript" language="javascript" src="se.chalmers.cs.gf.gwt.TranslateApp.nocache.js"></script>
</head>
<!-- -->