forked from hogi/ilarkesto
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
160 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#!/bin/bash -e | ||
|
||
function mavendownload { | ||
MVNGROUP=$1 | ||
MVNARTIFACT=$2 | ||
MVNVERSION=$3 | ||
FILENAME=$MVNARTIFACT-$MVNVERSION.jar | ||
|
||
BASE_URL=http://central.maven.org/maven2 | ||
|
||
wget -N $BASE_URL/$MVNGROUP/$MVNARTIFACT/$MVNVERSION/$FILENAME | ||
} | ||
|
||
function servistodownload { | ||
FILENAME=$1 | ||
|
||
BASE_URL=https://servisto.de/projects/ilarkesto/lib | ||
|
||
wget -N $BASE_URL/$FILENAME | ||
} | ||
|
||
cd lib | ||
|
||
mavendownload org/beanshell bsh 2.0b5 | ||
servistodownload codemirror_V-0.4-gwt16.jar | ||
|
||
servistodownload gdata-contacts-3.0.jar | ||
mavendownload com/google/gdata core 1.47.1 | ||
mavendownload com/google/api-client google-api-client 1.19.1 | ||
mavendownload com/google/guava guava 18.0 | ||
mavendownload com/google/inject guice 4.0 | ||
|
||
mavendownload com/google/gwt gwt-codeserver 2.7.0 | ||
mavendownload com/google/gwt gwt-dev 2.7.0 | ||
mavendownload com/google/gwt gwt-servlet 2.7.0 | ||
mavendownload com/google/gwt gwt-user 2.7.0 | ||
mavendownload org/ow2/asm asm 5.0.4 | ||
mavendownload org/ow2/asm asm-commons 5.0.4 | ||
mavendownload org/ow2/asm asm-util 5.0.4 | ||
mavendownload com/allen-sauer/gwt/dnd gwt-dnd 3.3.0 | ||
mavendownload com/googlecode/gwtupload gwtupload 1.0.3 | ||
|
||
mavendownload org/apache/httpcomponents httpclient 4.5 | ||
|
||
servistodownload httpcore-4.2.2.jar | ||
servistodownload httpunit-1.6.2.jar | ||
servistodownload nekohtml-1.9.14.jar | ||
servistodownload tidy.jar | ||
|
||
mavendownload com/itextpdf itextpdf 5.5.6 | ||
mavendownload com/itextpdf itext-asian 5.2.0 | ||
mavendownload com/itextpdf itext-pdfa 5.5.6-1 | ||
mavendownload com/itextpdf itext-xtra 5.5.6 | ||
|
||
mavendownload org jaudiotagger 2.0.3 | ||
|
||
mavendownload javax/mail javax.mail-api 1.5.4 | ||
|
||
mavendownload net/jcip jcip-annotations 1.0 | ||
|
||
mavendownload org/jfree jcommon 1.0.23 | ||
mavendownload org/jfree jfreechart 1.0.19 | ||
|
||
mavendownload org/jdom jdom2 2.0.6 | ||
|
||
mavendownload junit junit 4.12 | ||
|
||
mavendownload mysql mysql-connector-java 5.1.35 | ||
|
||
servistodownload openid4java-0.9.8.jar | ||
|
||
mavendownload org/apache/poi poi 3.12 | ||
mavendownload org/apache/poi poi-ooxml 3.12 | ||
mavendownload org/apache/poi poi-ooxml-schemas 3.12 | ||
|
||
mavendownload org/scribe scribe 1.3.7 | ||
|
||
mavendownload javax/servlet javax.servlet-api 3.1.0 | ||
|
||
mavendownload org/testng testng 6.9.4 | ||
|
||
mavendownload org/apache/velocity velocity 1.7 | ||
|
||
mavendownload xerces xercesImpl 2.11.0 | ||
|
||
mavendownload org/apache/xmlbeans xmlbeans 2.6.0 | ||
|
||
mavendownload com/thoughtworks/xstream xstream 1.4.8 | ||
|
||
mavendownload commons-fileupload commons-fileupload 1.3.1 | ||
mavendownload commons-collections commons-collections 3.2.1 | ||
mavendownload commons-io commons-io 2.4 | ||
mavendownload commons-lang commons-lang 2.6 | ||
mavendownload commons-logging commons-logging 1.2 | ||
mavendownload commons-net commons-net 3.3 | ||
mavendownload commons-codec commons-codec 1.10 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/* | ||
* Copyright 2011 Witoslaw Koczewsi <[email protected]> | ||
* | ||
* | ||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero | ||
* General Public License as published by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | ||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public | ||
* License for more details. | ||
* | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with this program. If not, | ||
* see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
@@ -47,6 +47,21 @@ public class GwtSuperDevMode { | |
private WebServer webServer; | ||
private Proc proc; | ||
|
||
public void startCodeServerInSeparateProcessWithJarsFromIlarkesto(File workDir) { | ||
List<String> cp = new ArrayList<String>(); | ||
File ilarkestoDir = new File(workDir.getPath() + "/ilarkesto"); | ||
if (!ilarkestoDir.exists()) | ||
throw new RuntimeException("Ilarkesto directory does not exist: " + ilarkestoDir.getAbsolutePath()); | ||
for (File file : IO.listFiles(new File(ilarkestoDir.getPath() + "/lib"))) { | ||
if (!file.isFile()) continue; | ||
String name = file.getName(); | ||
if (!name.endsWith(".jar")) continue; | ||
if (name.startsWith("gwt")) cp.add("ilarkesto/lib/" + name); | ||
if (name.startsWith("asm")) cp.add("ilarkesto/lib/" + name); | ||
} | ||
startCodeServerInSeparateProcess(workDir, cp); | ||
} | ||
|
||
public void startCodeServerInSeparateProcess(File workDir, Collection<String> classpath) { | ||
IO.delete(getWorkDir()); | ||
|
||
|
@@ -55,7 +70,7 @@ public void startCodeServerInSeparateProcess(File workDir, Collection<String> cl | |
Proc proc = new Proc("java"); | ||
proc.setWorkingDir(workDir); | ||
proc.setRedirectOutputToSysout(true); | ||
proc.addParameters("-classpath", Str.concat(classpath, Sys.getPathSeparator())); | ||
if (!classpath.isEmpty()) proc.addParameters("-classpath", Str.concat(classpath, Sys.getPathSeparator())); | ||
proc.addParameter("com.google.gwt.dev.codeserver.CodeServer"); | ||
if (!precompile) proc.addParameter("-noprecompile"); | ||
if (!incremental) proc.addParameter("-noincremental"); | ||
|
This file was deleted.
Oops, something went wrong.