forked from GitHub/gf-core
Reorganize GWT stuff into a reusable module and one application module.
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
@@ -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.*;
|
||||
|
||||
@@ -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";
|
||||
@@ -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>
|
||||
|
||||
<!-- -->
|
||||
Reference in New Issue
Block a user