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
|
GFCFLAGS = +RTS -K100M -RTS --cpu
|
||||||
|
|
||||||
.PHONY: pgf.fcgi run
|
.PHONY: pgf.fcgi run gf-gwt.jar
|
||||||
|
|
||||||
pgf.fcgi:
|
pgf.fcgi:
|
||||||
cabal install
|
cabal install
|
||||||
@@ -35,7 +35,7 @@ test.pgf: LangEng-parse.pgf LangGer-parse.pgf
|
|||||||
|
|
||||||
run: pgf.fcgi
|
run: pgf.fcgi
|
||||||
@echo '*********************************************'
|
@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 '*********************************************'
|
@echo '*********************************************'
|
||||||
lighttpd -f lighttpd.conf -D
|
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
|
mv tmp/gwt-client/Translate.html tmp/gwt-client/index.html
|
||||||
(cd tmp && tar -zcf ../gwt-client-installball.tar.gz gwt-client)
|
(cd tmp && tar -zcf ../gwt-client-installball.tar.gz gwt-client)
|
||||||
|
|
||||||
|
gf-gwt.jar:
|
||||||
|
jar -cf $@ -C gwt-client/src se
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cabal clean
|
cabal clean
|
||||||
-rm -f pgf.fcgi
|
-rm -f pgf.fcgi
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
APPDIR=`dirname $0`;
|
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
|
#!/bin/sh
|
||||||
APPDIR=`dirname $0`;
|
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
|
#!/bin/sh
|
||||||
APPDIR=`dirname $0`;
|
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>
|
<module>
|
||||||
|
|
||||||
<!-- Inherit the core Web Toolkit stuff. -->
|
<!-- Inherit the core Web Toolkit stuff. -->
|
||||||
<inherits name='com.google.gwt.user.User'/>
|
<inherits name="com.google.gwt.user.User" />
|
||||||
<inherits name="com.google.gwt.http.HTTP" />
|
|
||||||
<inherits name="com.google.gwt.json.JSON" />
|
<inherits name="se.chalmers.cs.gf.gwt.Translate" />
|
||||||
|
|
||||||
<!-- Inherit the default GWT style sheet. You can change -->
|
<!-- Inherit the default GWT style sheet. You can change -->
|
||||||
<!-- the theme of your GWT application by uncommenting -->
|
<!-- the theme of your GWT application by uncommenting -->
|
||||||
<!-- any one of the following lines. -->
|
<!-- any one of the following lines. -->
|
||||||
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
|
<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.chrome.Chrome"/> -->
|
||||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
<!-- <inherits name="com.google.gwt.user.theme.dark.Dark"/> -->
|
||||||
|
|
||||||
<!-- Other module inherits -->
|
<!-- Other module inherits -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Specify the app entry point class. -->
|
<!-- 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. -->
|
<!-- Specify the application specific style sheet. -->
|
||||||
<stylesheet src='Translate.css' />
|
<stylesheet src="Translate.css" />
|
||||||
|
|
||||||
</module>
|
</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;
|
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.http.client.*;
|
||||||
import com.google.gwt.core.client.GWT;
|
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.*;
|
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.core.client.EntryPoint;
|
||||||
import com.google.gwt.user.client.ui.Button;
|
import com.google.gwt.user.client.ui.Button;
|
||||||
@@ -28,7 +28,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class Translate implements EntryPoint {
|
public class TranslateApp implements EntryPoint {
|
||||||
|
|
||||||
private static final String gfBaseURL = "/pgf";
|
private static final String gfBaseURL = "/pgf";
|
||||||
private static final String pgfName = "grammar.pgf";
|
private static final String pgfName = "grammar.pgf";
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<!-- If you add any GWT meta tags, they must -->
|
<!-- If you add any GWT meta tags, they must -->
|
||||||
<!-- be added before this line. -->
|
<!-- 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>
|
</head>
|
||||||
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
Reference in New Issue
Block a user