commit 3eef09089326c920b7334bb8d9c850d530649e82 from: leo date: Fri Jan 30 12:01:44 2009 UTC finally fixed the maven build to create a single, executable jar file commit - 1ed4adbef9f60384ca707c5c09274a1683b33697 commit + 3eef09089326c920b7334bb8d9c850d530649e82 blob - 8333fd209f021cf40ec5a8eef14bedef0b57b5ef blob + 4cd79236b62600c067647b4c2f9a3f82ca3ccfa3 --- modules/server/moxo-server.iml +++ modules/server/moxo-server.iml @@ -14,6 +14,7 @@ + blob - /dev/null blob + 2195f21f9d5c5d210a641edd6928dff35738cd70 (mode 644) --- /dev/null +++ modules/server/assembly.xml @@ -0,0 +1,73 @@ + + + runtime + + jar + + false + + + + true + + com.thinkberg:moxoapp + + + + commons-logging.properties + simplelog.properties + jetty.xml + **/Main.class + + + + + + + + + false + + com.thinkberg:moxoapp + + + + + false + + com.thinkberg:webdav + + + + + false + + com.thinkberg:vfs.s3 + + + + + false + runtime + + com.thinkberg:moxoapp + com.thinkberg:webdav + com.thinkberg:vfs.s3 + + + + blob - 476dfe8db6dc10c84d565ecc644ec9683126cfdd blob + 1f8f8040810c0128bd3be48b9d195e331754acd9 --- modules/server/pom.xml +++ modules/server/pom.xml @@ -1,106 +1,76 @@ - 4.0.0 - com.thinkberg - moxo-server - Moxo Server - 1.0 - - - org.mortbay.jetty - jetty - 6.1.1 - - - com.thinkberg - webdav - 1.0-SNAPSHOT - - - com.thinkberg - vfs.s3 - 1.0-SNAPSHOT - - - - - - maven-compiler-plugin - - true - true - 1.5 - 1.5 - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/MoxoTest.java - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - package - - jar - - - - - com.thinkberg.moxo.Main - true - - - - **/moxo/* - - - - - - - - + 4.0.0 + com.thinkberg + moxoapp + thinkberg.com Moxo Application Runtime + 1.0 + + + org.mortbay.jetty + jetty + 6.1.1 + + + org.slf4j + slf4j-jcl + 1.0.1 + + + com.thinkberg + webdav + 1.0-SNAPSHOT + + + com.thinkberg + vfs.s3 + 1.0-SNAPSHOT + + + + + + maven-compiler-plugin + + true + true + 1.5 + 1.5 + + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/MoxoTest.java + + + + + maven-assembly-plugin + + + + com.thinkberg.moxo.Main + + + + + assembly.xml + + + + + make-assembly + package + + attached + + + + + + \ No newline at end of file blob - 834ca79e40db93587eb89c07798c51befb4cdbe8 blob + 4be0edeea76445ec783f106b56d917333c4fbfb4 --- modules/server/src/main/java/com/thinkberg/moxo/Main.java +++ modules/server/src/main/java/com/thinkberg/moxo/Main.java @@ -72,7 +72,6 @@ public class Main { private static URL[] initClassPath() { List urlArray = new ArrayList(); InputStream manifestIn = null; - InputStream jarIn = null; try { manifestIn = location.openStream(); JarInputStream launcherJarIs = new JarInputStream(manifestIn); @@ -90,6 +89,7 @@ public class Main { } } catch (IOException e) { System.err.println("ignored '" + jarEntry.getName() + "'"); + System.err.println(e.getMessage()); } } } @@ -101,13 +101,9 @@ public class Main { try { manifestIn.close(); } catch (Throwable ignore) { + ignore.printStackTrace(); // ignore errors } - try { - jarIn.close(); - } catch (Throwable ignore) { - // ignore errors - } } return urlArray.toArray(new URL[urlArray.size()]); } @@ -146,7 +142,8 @@ public class Main { * @throws IOException if the extraction was not possible */ private static URL extract(URL resource) throws IOException { - File f = File.createTempFile("launcher_", ".jar"); + String name = new File(resource.getFile()).getName(); + File f = File.createTempFile("launcher_" + name + "_", ".jar"); f.deleteOnExit(); if (f.getParentFile() != null) { f.getParentFile().mkdirs(); blob - 71c406fc4d38c233930be39548d9d3767b2a5d3b blob + 8877d853702759a51eb8b1bbc30f40e0f7a75d28 --- modules/server/src/main/resources/jetty.xml +++ modules/server/src/main/resources/jetty.xml @@ -12,50 +12,51 @@ - - - - - - - 10 - 50 - 250 - + + + + + + + 10 + 50 + 250 + - - + + - - - - - + + + + + - - - - - - - - 30000 - 2 - 8443 - - - + + + + + + + + 30000 + 2 + 8443 + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - / - - - - - com.thinkberg.webdav.servlet.MoxoWebDAVServlet - /* - - vfs.uri - ram:/ - - - vfs.auth.domain - - - - vfs.auth.user - theuser - - - vfs.auth.password - thepassword - - + + + + + - - + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + com.thinkberg.webdav.servlet.MoxoWebDAVServlet + /* + + vfs.uri + ram:/ + + + vfs.auth.domain + + + + vfs.auth.user + theuser + + + vfs.auth.password + thepassword + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /yyyy_mm_dd.request.log + + 90 + true + false + GMT + + - - - - - - - - - - - - - /yyyy_mm_dd.request.log - - 90 - true - false - GMT - - - + + + + true + + true - - - - true - - true - blob - 06d0ba45d0947de8c84d470d4bc1a1fd74c4346a blob + 836c822c538c46e4eee02b1509ecd545c5f5f851 --- modules/server/src/main/resources/simplelog.properties +++ modules/server/src/main/resources/simplelog.properties @@ -15,5 +15,6 @@ # org.apache.commons.logging.simplelog.defaultlog=error +org.apache.commons.logging.simplelog.org.mortbay=info org.apache.commons.logging.simplelog.log.com.thinkberg.vfs.s3=info org.apache.commons.logging.simplelog.log.com.thinkberg.webdav=info \ No newline at end of file blob - ab1a74fa06b6c50787d3d4de5596e04bba672562 blob + 769733b58ec53dab17fa9f9fedac2afdec2fbceb --- modules/webdav/pom.xml +++ modules/webdav/pom.xml @@ -17,73 +17,73 @@ - 4.0.0 - com.thinkberg - webdav - 1.0-SNAPSHOT - thinkberg.com WebDAV - - - commons-vfs - commons-vfs - 1.0 - - - commons-httpclient - commons-httpclient - 3.0.1 - - - commons-collections - commons-collections - 3.2.1 - - - commons-codec - commons-codec - 1.3 - - - dom4j - dom4j - 1.6.1 - - - jaxen - jaxen - 1.1.1 - - - javax.servlet - servlet-api - 2.5 - - - - - - src/main/resources - - - - - maven-compiler-plugin - - true - true - 1.5 - 1.5 - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/tests/*.java - - - - - + 4.0.0 + com.thinkberg + webdav + 1.0-SNAPSHOT + thinkberg.com WebDAV library + + + commons-vfs + commons-vfs + 1.0 + + + commons-httpclient + commons-httpclient + 3.0.1 + + + commons-collections + commons-collections + 3.2.1 + + + commons-codec + commons-codec + 1.3 + + + dom4j + dom4j + 1.6.1 + + + jaxen + jaxen + 1.1.1 + + + javax.servlet + servlet-api + 2.5 + + + + + + src/main/resources + + + + + maven-compiler-plugin + + true + true + 1.5 + 1.5 + + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/tests/*.java + + + + + \ No newline at end of file blob - 237a07f14ed3f027d0c028c8de202d7d4345d9c3 blob + 4e70a7fdd56320debcab9a16d079e8fd4023aa32 --- pom.xml +++ pom.xml @@ -1,15 +1,15 @@ - 4.0.0 - com.thinkberg - moxo - pom - 1.0-SNAPSHOT - Moxo S3 DAV Proxy - - modules/server - modules/webdav - modules/vfs.s3 - - http://thinkberg.com + 4.0.0 + com.thinkberg + moxo + pom + 1.0-SNAPSHOT + thinkberg.com Moxo S3 DAV Project + + modules/server + modules/webdav + modules/vfs.s3 + + http://thinkberg.com