*) adding possibility to build a distribution containing an exe file for windows users

see: build file target "distWinExe"

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1494 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2006-01-30 16:16:37 +00:00
parent f0af91219c
commit 48e302252e
10 changed files with 152 additions and 2 deletions

Binary file not shown.

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<jsmoothskeleton>
<debug>false</debug>
<description>This skeleton wraps console applications.
- Standard Input/Output and Error streams are available
- If no Java VM is found, it displays a default message.
Although it is designed for console application (i.e. launched from the command.com shell prompt), it can launch standard GUI application. In such a case, any output of the java application (from System.out or System.err) is displayed in the a DOS Console.
</description>
<executableName>consolewrapper.exe</executableName>
<resourceCategory>JAVA</resourceCategory>
<resourceJarId>102</resourceJarId>
<resourcePropsId>103</resourcePropsId>
<shortName>Console Wrapper</shortName>
<skeletonProperties>
<description>When no JVM is found in the target computer, the following message is displayed on the console.</description>
<idName>Message</idName>
<label>Message</label>
<type>textarea</type>
<value>This program needs Java to run.
Please download it at http://www.java.com</value>
</skeletonProperties>
<skeletonProperties>
<description>The wrapper waits a keypress on the console when the application exits.</description>
<idName>PressKey</idName>
<label>PressKey</label>
<type>boolean</type>
<value>0</value>
</skeletonProperties>
<skeletonProperties>
<description>Enable the jsmooth debug traces</description>
<idName>Debug</idName>
<label>Debug traces</label>
<type>boolean</type>
<value>0</value>
</skeletonProperties>
</jsmoothskeleton>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<jsmoothskeleton>
<debug>false</debug>
<description>This skeleton wraps GUI applications.
- No console I/O is displayed
- If no Java VM is found, it is able to display a configurable URL (typically to a java download page).
</description>
<executableName>jwrap.exe</executableName>
<resourceCategory>JAVA</resourceCategory>
<resourceJarId>102</resourceJarId>
<resourcePropsId>103</resourcePropsId>
<shortName>Windowed Wrapper</shortName>
<skeletonProperties>
<description>When no JVM is found in the target computer, the user is prompted with the message defined below. Then, the default browser is launched with the URL defined here.</description>
<idName>Message</idName>
<label>Message</label>
<type>textarea</type>
<value>Java has not been found on your computer. Do you want to download it?</value>
</skeletonProperties>
<skeletonProperties>
<description>If the user selects YES to the message prompted above, the default web browser is launched with this URL.</description>
<idName>URL</idName>
<label>URL</label>
<type>string</type>
<value>http://www.java.com</value>
</skeletonProperties>
<skeletonProperties>
<description>The default behaviour is to launch the java application in a different (detached) process. If you want to force the wrapper to launch the Java application in the same process than the exe, than select this option.</description>
<idName>SingleProcess</idName>
<label>Launch java app in the exe process</label>
<type>boolean</type>
<value>0</value>
</skeletonProperties>
<skeletonProperties>
<description>Enable the jsmooth debug console.</description>
<idName>Debug</idName>
<label>Debug console</label>
<type>boolean</type>
<value>0</value>
</skeletonProperties>
</jsmoothskeleton>

Binary file not shown.

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<jsmoothproject>
<JVMSearchPath>registry</JVMSearchPath>
<JVMSearchPath>javahome</JVMSearchPath>
<JVMSearchPath>jrepath</JVMSearchPath>
<JVMSearchPath>jdkpath</JVMSearchPath>
<JVMSearchPath>exepath</JVMSearchPath>
<JVMSearchPath>jview</JVMSearchPath>
<arguments></arguments>
<classPath>..\..\htroot</classPath>
<classPath>..\..\htroot\htdocsdefault</classPath>
<classPath>..\..\htroot\proxymsg</classPath>
<classPath>..\..\htroot\yacy</classPath>
<classPath>..\..\yacy.jar</classPath>
<classPath>..\..\lib\commons-collections.jar</classPath>
<classPath>..\..\lib\commons-pool-1.2.jar</classPath>
<classPath>..\..\libx\axis-ant.jar</classPath>
<classPath>..\..\libx\axis.jar</classPath>
<classPath>..\..\libx\bzip2.jar</classPath>
<classPath>..\..\libx\commons-codec-1.3.jar</classPath>
<classPath>..\..\libx\commons-discovery.jar</classPath>
<classPath>..\..\libx\commons-logging.jar</classPath>
<classPath>..\..\libx\informa-0.6.0.jar</classPath>
<classPath>..\..\libx\jakarta-oro-2.0.7.jar</classPath>
<classPath>..\..\libx\javasvn.jar</classPath>
<classPath>..\..\libx\jaxrpc.jar</classPath>
<classPath>..\..\libx\jdom.jar</classPath>
<classPath>..\..\libx\jmimemagic-0.0.4a.jar</classPath>
<classPath>..\..\libx\jrpm-head.jar</classPath>
<classPath>..\..\libx\jrpm-SNAPSHOT.jar</classPath>
<classPath>..\..\libx\jsch-0.1.21.jar</classPath>
<classPath>..\..\libx\log4j-1.2.9.jar</classPath>
<classPath>..\..\libx\odf_utils_05_11_10.jar</classPath>
<classPath>..\..\libx\PDFBox-0.7.2.jar</classPath>
<classPath>..\..\libx\saaj.jar</classPath>
<classPath>..\..\libx\tar.jar</classPath>
<classPath>..\..\libx\tm-extractors-0.4.jar</classPath>
<classPath>..\..\libx\wsdl4j.jar</classPath>
<classPath>..\..\libx\xerces.jar</classPath>
<embeddedJar>false</embeddedJar>
<executableName>..\..\yacy.exe</executableName>
<iconLocation>..\..\htroot\favicon.png</iconLocation>
<initialMemoryHeap>-1</initialMemoryHeap>
<mainClassName>yacy</mainClassName>
<maximumMemoryHeap>-1</maximumMemoryHeap>
<maximumVersion></maximumVersion>
<minimumVersion>1.4.2</minimumVersion>
<skeletonName>Console Wrapper</skeletonName>
<skeletonProperties>
<key>Message</key>
<value>This program needs Java to run. Please download it at http://www.java.com</value>
</skeletonProperties>
<skeletonProperties>
<key>PressKey</key>
<value>1</value>
</skeletonProperties>
<skeletonProperties>
<key>Debug</key>
<value>0</value>
</skeletonProperties>
</jsmoothproject>

View File

@ -379,6 +379,7 @@
<include name="stopYACY_Win9x.bat"/>
</fileset>
</copy>
<copy todir="${release_main}" file="yacy.exe" failonerror="false"/>
<!-- copy locales -->
<copy todir="${release_main}/locales">
@ -616,7 +617,7 @@
</jar>
</target>
<target name="win-exe" depends="build-jar">
<target name="makeWinExe" depends="build-jar,compileExtensions">
<!-- Creates a Windows Executable using JSmooth (http://jsmooth.sf.net) -->
<taskdef name="jsmoothgen"
classname="net.charabia.jsmoothgen.ant.JSmoothGen"
@ -629,4 +630,7 @@
</delete>
</target>
<target name="distWinExe" depends="makeWinExe,distAllInOne">
</target>
</project>

View File

@ -0,0 +1,7 @@
// Testing if the yacy archive file were unzipped correctly.
// This test is needed because of classfile-names longer than 100 chars
// which could cause problems with incompatible unzip software.
// See:
// - http://www.yacy-forum.de/viewtopic.php?t=1763
// - http://www.yacy-forum.de/viewtopic.php?t=715
// - http://www.yacy-forum.de/viewtopic.php?t=1674

BIN
htroot/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

View File

@ -234,7 +234,7 @@ public final class yacy {
// - http://www.yacy-forum.de/viewtopic.php?t=1763
// - http://www.yacy-forum.de/viewtopic.php?t=715
// - http://www.yacy-forum.de/viewtopic.php?t=1674
File unzipTest = new File(homePath,"classes/de/anomic/kelondro/kelondroMScoreCluster$reverseScoreIterator.class");
File unzipTest = new File(homePath,"doc/This_is_a_test_if_the_archive_file_containing_YaCy_was_unpacked_correctly_If_not_please_use_gnu_tar_instead.txt");
if (!unzipTest.exists()) {
String errorMsg = "The archive file containing YaCy was not unpacked correctly. " +
"Please use 'GNU-Tar' or upgrade to a newer version of your unzip software.\n" +