Revision 25370

View differences:

tags/tmp_build/build/build.xml
1
<project name="Complete_build_system" basedir="." default="prepare-eclipse-workspace">
2
	<description>
3
		Builds and prepare folders to work with eclipse using maven.
4
		Also is able to generate a release of all system with binaries distribution
5
		and sources distribution.
6
	</description>
7
	<!-- set global properties for this build -->
8
	<dirname file="${ant.file.Complete_build_system}" property="ant.file.Complete_build_system.dir"/>
9
	<property name="mavendir" location="${ant.file.Complete_build_system.dir}/maven" />
10
	<property environment="environment"/>
11

  
12
	<condition property="mvn.executable" value="${mavendir}/bin/mvn.bat" else="${mavendir}/bin/mvn">
13
		<os family="windows" />
14
	</condition>
15

  
16
	<condition property="isLinux">
17
		<and>
18
			<os family="unix" />
19
			<not>
20
				<os family="mac" />
21
			</not>
22
		</and>
23
	</condition>
24
	<condition property="isWindows">
25
		<or>
26
			<os family="windows" />
27
			<os family="win9x" />
28
			<os name="Windows Vista" />
29
		</or>
30
	</condition>
31
	<condition property="isMac">
32
		<os family="mac" />
33
	</condition>
34

  
35
	<condition property="gvsig.os" value="w32">
36
		<os family="windows" />
37
	</condition>
38
	<condition property="gvsig.os" value="linux">
39
		<and>
40
			<os family="unix" />
41
			<not>
42
				<os family="mac" />
43
			</not>
44
		</and>
45
	</condition>
46
	<condition property="gvsig.os" value="mac">
47
		<os family="mac" />
48
	</condition>
49

  
50
	<property name="native-binaries-dir" value="../binaries" />
51

  
52
	<presetdef name="maven">
53
		<exec executable="${mvn.executable}">
54
			<env key="JAVA_HOME" value="${java.home}"/>
55
		</exec>
56
	</presetdef>
57

  
58
	<target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests">
59
		<maven>
60
			<arg value="-Declipse.workspace=../" />
61
			<arg value="eclipse:add-maven-repo" />
62
		</maven>
63
		<maven>
64
			<arg value="eclipse:eclipse" />
65
		</maven>
66

  
67
	</target>
68
	<target name="mvn-clean">
69
		<maven>
70
			<arg value="clean" />
71
		</maven>
72
	</target>
73
	<target name="mvn-install-without-tests">
74
		<maven>
75
			<arg value="install" />
76
			<arg value="-Dmaven.test.skip=true" />
77
		</maven>
78
	</target>
79

  
80
	<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean">
81
		<maven>
82
			<arg value="eclipse:eclipse" />
83
		</maven>
84
	</target>
85

  
86
	<target name="mvn-install-extensions">
87
		<maven>
88
			<arg value="install" />
89
			<arg value="-Dmaven.test.skip=true" />
90
			<arg value="-Dinstall-extension" />
91
		</maven>
92
	</target>
93

  
94
	<target name="mvn-install">
95
		<maven>
96
			<arg value="install" />
97
		</maven>
98
	</target>
99

  
100
	<target name="mvn-eclipse-clean">
101
		<maven>
102
			<arg value="eclipse:clean" />
103
		</maven>
104
	</target>
105

  
106
	<target name="mvn-eclipse-eclipse">
107
		<maven>
108
			<arg value="eclipse:eclipse" />
109
		</maven>
110
	</target>
111

  
112
	<!-- TODO: Target for make complete building of gvSIG, calling all enabled projects by default -->
113

  
114
	<!-- target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" / -->
115

  
116
</project>
117

  
tags/tmp_build/build/distribution/IzPack/Description.txt
1
[ Description ]
2

  
3
    IzPack is Copyright (c) 2001-2005 Julien PONGE.
4
    http://www.izforge.com/
5
    julien@izforge.com
6
    julien.ponge@gmail.com
7

  
8
    IzPack is a powerfull Java installer builder released under the terms of
9
the GNU GPL version 2 of the licence, or any later version.
10

  
11
    It is able to create lightweight and modular installers. You can extend 
12
its capacities through a plugin-like architecture to make it better suit your
13
needs.
14

  
15
    You have the choice of the installer panels you want to use (some can do
16
the same job, so that you can select the one you prefer) and you even have the
17
choice of the kind of installer that you want to use.
18

  
19
    IzPack doesn't use any portion of native code, it is designed to be fully 
20
independant from the operating system that runs it. It is very easy for the
21
end-user to use an installer made with IzPack, with a well-installed JVM, 
22
a single "java -jar installer.jar" will launch it :-)
23

  
24
# vim: fileformat=dos 
tags/tmp_build/build/distribution/IzPack/sample/Licence.txt
1
(Consider it as a licence file ...)
tags/tmp_build/build/distribution/IzPack/sample/doc/doc.txt
1
We can have here some documenation files ...
tags/tmp_build/build/distribution/IzPack/sample/install.xml
1
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
2

  
3
<!-- 
4
    A sample installation file.
5
    Use it as a base for your own installers :-)
6
    
7
    To compile it :
8
    - go in the bin directory where you installed IzPack
9
    - call "compile ../sample/install.xml -b ../sample"
10
-->
11

  
12
<installation version="1.0">
13

  
14
    <!-- 
15
        The info section.
16
        The meaning of the tags should be natural ...
17
    -->
18
    <info>
19
        <appname>Sample Installation</appname>
20
        <appversion>1.4 beta 666</appversion>
21
        <authors>
22
            <author name="JPz" email="jpz@superman.org"/>
23
            <author name="Hidden Man" email="hidden@hisdomain.com"/>
24
        </authors>
25
        <url>http://www.anotherworld-inspace-website.net/</url>
26
    </info>
27
    
28
    <!-- 
29
        The gui preferences indication.
30
        Sets the installer window to 640x480. It will not be able to change the size.
31
    -->
32
    <guiprefs width="640" height="480" resizable="no"/>
33
    
34
    <!-- 
35
        The locale section.
36
        Asks here to include the English and French langpacks.
37
    -->
38
    <locale>
39
        <langpack iso3="eng"/>
40
        <langpack iso3="fra"/>
41
    </locale>
42
    
43
    <!-- 
44
        The resources section.
45
        The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
46
    -->
47
    <resources>
48
        <res id="LicencePanel.licence" src="Licence.txt"/>
49
        <res id="InfoPanel.info" src="Readme.txt"/>
50
    </resources>
51
    
52
    <!-- 
53
        The panels section.
54
        We indicate here which panels we want to use. The order will be respected.
55
    -->
56
    <panels>
57
        <panel classname="HelloPanel"/>
58
        <panel classname="InfoPanel"/>
59
        <panel classname="LicencePanel"/>
60
        <panel classname="TargetPanel"/> 
61
        <panel classname="PacksPanel"/>
62
        <panel classname="InstallPanel"/>
63
        <panel classname="FinishPanel"/>
64
    </panels>
65
    
66
    <!-- 
67
        The packs section.
68
        We specify here our packs.
69
    -->
70
    <packs>
71
        <pack name="Base" required="yes">
72
            <description>The base files</description>
73
            <file src="Readme.txt" targetdir="$INSTALL_PATH"/>
74
            <file src="Licence.txt" targetdir="$INSTALL_PATH"/>
75
            <file src="script.bat" targetdir="$INSTALL_PATH"/>
76
            <parsable targetfile="$INSTALL_PATH/script.bat"/> <!-- The file will be parsed -->
77
        </pack>
78
        <pack name="Docs" required="no">
79
            <description>The documentation</description>
80
            <file src="doc" targetdir="$INSTALL_PATH"/> <!-- Reccursive adding -->
81
        </pack>
82
        <pack name="Sources" required="no">
83
            <description>The sources</description>
84
            <file src="src" targetdir="$INSTALL_PATH"/>
85
        </pack>
86
    </packs>
87
    
88
</installation>
tags/tmp_build/build/distribution/IzPack/sample/listener/test1/ShouldNotSeenWith_ls.txt
1
Testfile
tags/tmp_build/build/distribution/IzPack/sample/listener/test2/ShouldSeenWith_ls.txt
1
Testfile
tags/tmp_build/build/distribution/IzPack/sample/listener/install.xml
1
<?xml version="1.0" encoding="iso-8859-1"  ?>
2
<!DOCTYPE installation PUBLIC "" "file:///P:/IzPack_HEAD/izpack-src/src/dtd/installation.dtd" >
3

  
4
<!-- 
5
	@author  Klaus Bartz
6
-->
7

  
8
<installation version="1.0">
9

  
10
    <!-- 
11
        The info section.
12
        The meaning of the tags should be natural ...
13
    -->
14
    <info>
15
        <appname>CustomActionDemo</appname>
16
        <appversion>1.47</appversion>
17
        <authors>
18
            <author name="Klaus Bartz" email="info@myCompany.de"/>
19
        </authors>
20
        <url>http://www.myCompany.com/</url>
21
    </info>
22
    
23
    <!-- 
24
        The gui preferences indication.
25
        Sets the installer window to 640x480. It will not be able to change the size.
26
    -->
27
    <guiprefs width="640" height="480" resizable="no"/>
28
    
29
    <!-- 
30
        The locale section.
31
        Asks here to include the English and German langpacks.
32
    -->
33
    <locale>
34
        <langpack iso3="eng"/>
35
        <langpack iso3="deu"/>
36
    </locale>
37
    
38
    <!-- 
39
        The panels section.
40
        We indicate here which panels we want to use. The order will be respected.
41
    -->
42
    <panels>
43
        <panel classname="HelloPanel"/>
44
        <panel classname="TargetPanel"/> 
45
        <panel classname="InstallPanel"/>
46
        <panel classname="FinishPanel"/>
47
    </panels>
48
    
49
    <listeners>
50
    	<listener compiler="ChmodCompilerListener" installer="ChmodInstallerListener"  >
51
    	</listener>
52
    </listeners>
53
    <!-- 
54
        The packs section.
55
        We specify here our packs.
56
    -->
57
    <packs>
58
        <pack name="Unix core" required="yes">
59
            <description>Required pack for Unix</description>
60
            <fileset dir="test1" targetdir="$INSTALL_PATH/test1" >
61
            	<additionaldata key="permission.file" value="0666"/>
62
            	<additionaldata key="permission.dir" value="0711"/>
63
            </fileset>
64
            <fileset dir="test2" targetdir="$INSTALL_PATH/test2" >
65
            	<additionaldata key="permission.file" value="0444"/>
66
            	<additionaldata key="permission.dir" value="0777"/>
67
            </fileset>
68
        </pack>
69
    </packs>
70
    
71
   
72
</installation>
tags/tmp_build/build/distribution/IzPack/sample/src/Scrambler.java
1
/*
2
 * $Id: Scrambler.java 5819 2006-06-14 07:29:09Z cesar $
3
 * Copyright (C) 2003 Elmar Grom
4
 *
5
 * File :               Scramble.java
6
 * Description :        Example code for an encryption service
7
 * Author's email :     elmar@grom.net
8
 * Author's Website :   http://www.izforge.com
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24

  
25
package   com.izforge.izpack.sample;
26

  
27
import    com.izforge.izpack.panels.*;
28

  
29
/*---------------------------------------------------------------------------*/
30
/**
31
 * This class provides a demonstration for using an encryption service in
32
 * connection with a <code>RuleInputField</code>, as used in a
33
 * <code>UserInputPanel</code>.
34
 *
35
 * @version  0.0.1 / 02/19/03
36
 * @author   Elmar Grom
37
 */
38
/*---------------------------------------------------------------------------*/
39
public class Scrambler implements Processor
40
{
41
 /*--------------------------------------------------------------------------*/
42
 /**
43
  * Rearranges the input fields and concatenates the result, separating
44
  * individual fields with a '*'.
45
  *
46
  * @param     client   the client object using the services of this encryptor.
47
  *
48
  * @return    the encryption result.
49
  */
50
 /*--------------------------------------------------------------------------*/
51
  public String process (ProcessingClient client)
52
  {
53
    StringBuffer buffer = new StringBuffer ();
54
    
55
    for (int i = client.getNumFields () - 1; i > -1; i--)
56
    {
57
      buffer.append (client.getFieldContents (i));
58
      if (i > 0)
59
      {
60
        buffer.append ('*');
61
      }
62
    }
63
    
64
    return (buffer.toString ());
65
  }
66
}
67
/*---------------------------------------------------------------------------*/
tags/tmp_build/build/distribution/IzPack/sample/src/myCompany/tools/install/listener/ChmodCompilerListener.java
1
/*
2
 *  $Id: ChmodCompilerListener.java 5819 2006-06-14 07:29:09Z cesar $
3
 *  IzPack
4
 *  Copyright (C) 2004 Klaus Bartz
5
 *
6
 *  File :               ChmodCompilerListener.java
7
 *  Description :        Example for custom action for packaging time.
8
 *  Author's email :     klaus.bartz@coi.de
9
 *  Author's Website :   http://www.coi.de/
10
 *
11
 *  This program is free software; you can redistribute it and/or
12
 *  modify it under the terms of the GNU General Public License
13
 *  as published by the Free Software Foundation; either version 2
14
 *  of the License, or any later version.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *
21
 *  You should have received a copy of the GNU General Public License
22
 *  along with this program; if not, write to the Free Software
23
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
 */
25

  
26
package com.myCompany.tools.install.listener;
27
import java.util.HashMap;
28
import java.util.Iterator;
29
import java.util.Map;
30
import java.util.Vector;
31

  
32
import net.n3.nanoxml.XMLElement;
33
import com.izforge.izpack.compiler.CompilerException;
34
import com.izforge.izpack.event.SimpleCompilerListener;
35

  
36

  
37
/**
38
 * <p>CompilerListener for file and directory permissions.</p>
39
 *
40
 * @author  Klaus Bartz
41
 *
42
 */
43
public class ChmodCompilerListener extends SimpleCompilerListener
44
{
45

  
46

  
47
  /* (non-Javadoc)
48
   * @see com.izforge.izpack.compiler.CompilerListener#reviseAdditionalDataMap(java.util.Map, net.n3.nanoxml.XMLElement)
49
   */
50
  public Map reviseAdditionalDataMap(Map existentDataMap, XMLElement element)
51
    throws CompilerException
52
  {
53
    Map retval = existentDataMap != null ? 
54
      existentDataMap : new  HashMap();
55
    Vector dataList = element.getChildrenNamed("additionaldata");
56
    Iterator iter = null;
57
    if( dataList == null ||  dataList.size() == 0  )
58
      return( existentDataMap);
59
    iter = dataList.iterator();
60
    while( iter.hasNext() )
61
    {
62
      XMLElement data = (XMLElement) iter.next();
63
      String [] relevantKeys = { "permission.dir", "permission.file"};
64
      for( int i = 0; i < relevantKeys.length; ++i )
65
      {
66
        String key = data.getAttribute("key");
67
        if( key.equalsIgnoreCase(relevantKeys[i]))
68
        {
69
          String value = data.getAttribute("value");
70
          if (value == null || value.length() == 0)
71
            continue;
72
          try
73
          {
74
            int radix = value.startsWith("0") ? 8 : 10;
75
            retval.put(key,Integer.valueOf(value, radix));
76
          } catch (NumberFormatException x)
77
          {
78
            throw new CompilerException("'" + relevantKeys[i] + "' must be an integer");
79
          }
80
        }
81
      }
82
    }
83
    return retval;
84
  }
85
}
tags/tmp_build/build/distribution/IzPack/sample/src/myCompany/tools/install/listener/ChmodInstallerListener.java
1
/*
2
 *  $Id: ChmodInstallerListener.java 5819 2006-06-14 07:29:09Z cesar $
3
 *  IzPack
4
 *  Copyright (C) 2004 Klaus Bartz
5
 *
6
 *  File :               ChmodInstallerListener.java
7
 *  Description :        Example for custom action for install time.
8
 *  Author's email :     klaus.bartz@coi.de
9
 *  Author's Website :   http://www.coi.de/
10
 *
11
 *  This program is free software; you can redistribute it and/or
12
 *  modify it under the terms of the GNU General Public License
13
 *  as published by the Free Software Foundation; either version 2
14
 *  of the License, or any later version.
15
 *
16
 *  This program is distributed in the hope that it will be useful,
17
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 *  GNU General Public License for more details.
20
 *
21
 *  You should have received a copy of the GNU General Public License
22
 *  along with this program; if not, write to the Free Software
23
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
 */
25

  
26
package com.myCompany.tools.install.listener;
27

  
28
import java.io.File;
29
import java.io.IOException;
30

  
31
import com.izforge.izpack.PackFile;
32
import com.izforge.izpack.util.FileExecutor;
33
import com.izforge.izpack.event.SimpleInstallerListener;
34
import com.izforge.izpack.installer.InstallerException;
35

  
36
/**
37
 * <p>InstallerListener for file and directory permissions
38
 * on Unix.</p>
39
 *
40
 * @author  Klaus Bartz
41
 *
42
 */
43
public class ChmodInstallerListener extends SimpleInstallerListener
44
{
45
  /* (non-Javadoc)
46
   * @see com.izforge.izpack.installer.InstallerListener#isFileListener()
47
   */
48
  public boolean isFileListener()
49
  {
50
    // This is a file related listener.
51
    return true;
52
  }
53
  /* (non-Javadoc)
54
   * @see com.izforge.izpack.compiler.InstallerListener#handleFile(java.io.File, com.izforge.izpack.PackFile)
55
   */
56
  public void afterFile(File filePath, PackFile pf) throws Exception
57
  {
58
    if( pf.getAdditionals()  == null )  
59
      return;
60
    Object file = pf.getAdditionals().get("permission.file");
61
    int fileVal = -1;
62
    if( file != null && file instanceof Integer )
63
      fileVal = ((Integer) file).intValue();
64
    if( fileVal != -1)
65
      chmod(filePath, fileVal);
66
  }
67

  
68
  /* (non-Javadoc)
69
   * @see com.izforge.izpack.compiler.InstallerListener#handleDir(java.io.File, com.izforge.izpack.PackFile)
70
   */
71
  public void afterDir(File dirPath, PackFile pf) throws Exception
72
  {
73
    if( pf.getAdditionals() == null )  
74
      return;
75
    if( dirPath == null )
76
      return;
77
    Object dir = pf.getAdditionals().get("permission.dir");
78
    int dirVal = -1;
79
    if( dir != null &&dir instanceof Integer )
80
      dirVal = ((Integer) dir).intValue();
81
    if( dirVal != -1)
82
    {
83
      if( (dirVal & 0x000001C0) < 0x000001C0 )
84
        throw new InstallerException( "Bad owner permission for directory " 
85
          + dirPath.getAbsolutePath() +"; at installation time the owner needs full rights" );
86
      chmod(dirPath, dirVal);
87
    }
88
  }
89

  
90
  private void chmod(File path, int permissions) throws IOException
91
  {
92
    String pathSep = System.getProperty("path.separator");
93
    if(OsVersion.IS_WINDOWS)
94
    {
95
      throw new IOException("Sorry, chmod not supported yet on windows; use this class OS dependant.");
96
    }
97
    if( path == null )
98
    // Oops this is an error, but in this example we ignore it ...
99
      return;
100
    String permStr = Integer.toOctalString(permissions);
101
    String[] params = {"chmod", permStr, path.getAbsolutePath()};
102
    String[] output = new String[2];
103
    FileExecutor fe = new FileExecutor();
104
    fe.executeCommand(params, output);
105
  }
106
}
tags/tmp_build/build/distribution/IzPack/sample/src/IPValidator.java
1
/*
2
 * $Id: IPValidator.java 5819 2006-06-14 07:29:09Z cesar $
3
 * Copyright (C) 2003 Elmar Grom
4
 *
5
 * File :               IPValidator.java
6
 * Description :        Sample implementation of a rule validator
7
 * Author's email :     elmar@grom.net
8
 * Author's Website :   http://www.izforge.com
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24

  
25
package   com.izforge.izpack.sample;
26

  
27
import    com.izforge.izpack.panels.*;
28

  
29
/*---------------------------------------------------------------------------*/
30
/**
31
 * This class represents a simple validator for IP addresses to demonstrate
32
 * the implementation of a rule validator that cooperates with the
33
 * <code>RuleInputField</code> used in the <code>UserInputPanel</code>
34
 *
35
 * @version  0.0.1 / 02/19/03
36
 * @author   Elmar Grom
37
 */
38
/*---------------------------------------------------------------------------*/
39
public class IPValidator implements Validator
40
{
41
 /*--------------------------------------------------------------------------*/
42
 /**
43
  * Validates the contend of a <code>RuleInputField</code>. The test is
44
  * intended for a rule input field composed of four sub-fields. The
45
  * combination of their individual content is assumed to represent an IP
46
  * address.
47
  *
48
  * @param     client   the client object using the services of this validator.
49
  *
50
  * @return    <code>true</code> if the validation passes, otherwise <code>false</code>.
51
  */
52
 /*--------------------------------------------------------------------------*/
53
  public boolean validate (ProcessingClient client)
54
  {
55
    // ----------------------------------------------------
56
    // verify that there are actually four sub-fields. A
57
    // different number would indicate that we are not
58
    // connected with the RuleInputField that we expect
59
    // ----------------------------------------------------
60
    if (client.getNumFields () != 4)
61
    {
62
      return (false);
63
    }
64
    
65
    // ----------------------------------------------------
66
    // test each field to make sure it actually contains
67
    // an integer and the value of the integer is beween
68
    // 0 and 255.
69
    // ----------------------------------------------------
70
    boolean isIP = true;
71
    
72
    for (int i = 0; i < 4; i++)
73
    {
74
      int value;
75
      
76
      try
77
      {
78
        value = Integer.parseInt (client.getFieldContents (i));
79
        if ((value < 0) || (value > 255))
80
        {
81
          isIP = false;
82
        }
83
      }
84
      catch (Throwable exception)
85
      {
86
        isIP = false;
87
      }
88
    }
89
    
90
    return (isIP);
91
  }
92
}
93
/*---------------------------------------------------------------------------*/
tags/tmp_build/build/distribution/IzPack/sample/src/PWDEncryptor.java
1
/*
2
 * $Id: PWDEncryptor.java 5819 2006-06-14 07:29:09Z cesar $
3
 * Copyright (C) 2003 Elmar Grom
4
 *
5
 * File :               PWDEncryptor.java
6
 * Description :        Example code for a password encryption service
7
 * Author's email :     elmar@grom.net
8
 * Author's Website :   http://www.izforge.com
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24

  
25
package   com.izforge.izpack.sample;
26

  
27
import    com.izforge.izpack.panels.*;
28

  
29
/*---------------------------------------------------------------------------*/
30
/**
31
 * This class provides a demonstration for using an encryption service in
32
 * connection with a password field, as used in a <code>UserInputPanel</code>.
33
 *
34
 * @version  0.0.1 / 02/19/03
35
 * @author   Elmar Grom
36
 */
37
/*---------------------------------------------------------------------------*/
38
public class PWDEncryptor implements Processor
39
{
40
 /*--------------------------------------------------------------------------*/
41
 /**
42
  * Encrypts the a password and returns the encrypted result. <br>
43
  * <b>Note:</b> this is not a real encryption algorithm. The code only
44
  * demonstrates the use of this interface in a real installation environment.
45
  * For a real application a proper encryption mechanism must be used. Though
46
  * Java 1.4.X provides such algorithms, you need to consider that not all
47
  * potential target environments have this version installed. It seems best
48
  * to include the necessary encryption library with the installer.
49
  *
50
  * @param     client   the client object using the services of this encryptor.
51
  *
52
  * @return    the encryption result.
53
  */
54
 /*--------------------------------------------------------------------------*/
55
  public String process (ProcessingClient client)
56
  {
57
    if (client.getNumFields () < 1)
58
    {
59
      return ("");
60
    }
61
    
62
    char [] password = client.getFieldContents (0).toCharArray ();
63
    char [] result   = new char [password.length];
64
    int  temp;
65
    
66
    for (int i = 0; i < password.length; i++)
67
    {
68
      temp = password [i] - 57;
69
      if (i > 0)
70
      {
71
        temp = temp + password [i - 1];
72
      }
73

  
74
      if ((temp % 3) == 0)
75
      {
76
        temp = temp + 13;
77
      }
78
      if (temp < 0)
79
      {
80
        temp = temp + 193;
81
      }
82
    
83
      result [i] = (char)temp;
84
    }
85

  
86
    return (new String (result));
87
  }
88
}
89
/*---------------------------------------------------------------------------*/
tags/tmp_build/build/distribution/IzPack/sample/src/PWDValidator.java
1
/*
2
 * $Id: PWDValidator.java 5819 2006-06-14 07:29:09Z cesar $
3
 * Copyright (C) 2003 Elmar Grom
4
 *
5
 * File :               PWDValidator.java
6
 * Description :        Example implementation of a password validator
7
 * Author's email :     elmar@grom.net
8
 * Author's Website :   http://www.izforge.com
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24

  
25
package   com.izforge.izpack.sample;
26

  
27
import    com.izforge.izpack.panels.*;
28

  
29
/*---------------------------------------------------------------------------*/
30
/**
31
 * This class represents a simple validator for passwords to demonstrate
32
 * the implementation of a password validator that cooperates with the
33
 * password field in the <code>UserInputPanel</code>
34
 *
35
 * @version  0.0.1 / 02/19/03
36
 * @author   Elmar Grom
37
 */
38
/*---------------------------------------------------------------------------*/
39
public class PWDValidator implements Validator
40
{
41
 /*--------------------------------------------------------------------------*/
42
 /**
43
  * Validates the contend of multiple password fields. The test 
44
  *
45
  * @param     client   the client object using the services of this validator.
46
  *
47
  * @return    <code>true</code> if the validation passes, otherwise <code>false</code>.
48
  */
49
 /*--------------------------------------------------------------------------*/
50
  public boolean validate (ProcessingClient client)
51
  {
52
    int numFields = client.getNumFields ();
53
    
54
    // ----------------------------------------------------
55
    // verify that there is more than one field. If there
56
    // is only one field we have to return true.
57
    // ----------------------------------------------------
58
    if (numFields < 2)
59
    {
60
      return (true);
61
    }
62
    
63
    boolean match   = true;
64
    String  content = client.getFieldContents (0);
65
    
66
    for (int i = 1; i < numFields; i++)
67
    {
68
      if (!content.equals (client.getFieldContents (i)))
69
      {
70
        match = false;
71
      }      
72
    }
73
    
74
    return (match);
75
  }
76
}
77
/*---------------------------------------------------------------------------*/
tags/tmp_build/build/distribution/IzPack/sample/script.bat
1
echo $INSTALL_PATH
tags/tmp_build/build/distribution/IzPack/sample/Readme.txt
1
A readme file ...
tags/tmp_build/build/distribution/IzPack/legal/IzPack-Licence.txt
1
		    GNU GENERAL PUBLIC LICENSE
2
		       Version 2, June 1991
3

  
4
 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
 Everyone is permitted to copy and distribute verbatim copies
7
 of this license document, but changing it is not allowed.
8

  
9
			    Preamble
10

  
11
  The licenses for most software are designed to take away your
12
freedom to share and change it.  By contrast, the GNU General Public
13
License is intended to guarantee your freedom to share and change free
14
software--to make sure the software is free for all its users.  This
15
General Public License applies to most of the Free Software
16
Foundation's software and to any other program whose authors commit to
17
using it.  (Some other Free Software Foundation software is covered by
18
the GNU Library General Public License instead.)  You can apply it to
19
your programs, too.
20

  
21
  When we speak of free software, we are referring to freedom, not
22
price.  Our General Public Licenses are designed to make sure that you
23
have the freedom to distribute copies of free software (and charge for
24
this service if you wish), that you receive source code or can get it
25
if you want it, that you can change the software or use pieces of it
26
in new free programs; and that you know you can do these things.
27

  
28
  To protect your rights, we need to make restrictions that forbid
29
anyone to deny you these rights or to ask you to surrender the rights.
30
These restrictions translate to certain responsibilities for you if you
31
distribute copies of the software, or if you modify it.
32

  
33
  For example, if you distribute copies of such a program, whether
34
gratis or for a fee, you must give the recipients all the rights that
35
you have.  You must make sure that they, too, receive or can get the
36
source code.  And you must show them these terms so they know their
37
rights.
38

  
39
  We protect your rights with two steps: (1) copyright the software, and
40
(2) offer you this license which gives you legal permission to copy,
41
distribute and/or modify the software.
42

  
43
  Also, for each author's protection and ours, we want to make certain
44
that everyone understands that there is no warranty for this free
45
software.  If the software is modified by someone else and passed on, we
46
want its recipients to know that what they have is not the original, so
47
that any problems introduced by others will not reflect on the original
48
authors' reputations.
49

  
50
  Finally, any free program is threatened constantly by software
51
patents.  We wish to avoid the danger that redistributors of a free
52
program will individually obtain patent licenses, in effect making the
53
program proprietary.  To prevent this, we have made it clear that any
54
patent must be licensed for everyone's free use or not licensed at all.
55

  
56
  The precise terms and conditions for copying, distribution and
57
modification follow.
58

  
59

  
60

  
61
		    GNU GENERAL PUBLIC LICENSE
62
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
63

  
64
  0. This License applies to any program or other work which contains
65
a notice placed by the copyright holder saying it may be distributed
66
under the terms of this General Public License.  The "Program", below,
67
refers to any such program or work, and a "work based on the Program"
68
means either the Program or any derivative work under copyright law:
69
that is to say, a work containing the Program or a portion of it,
70
either verbatim or with modifications and/or translated into another
71
language.  (Hereinafter, translation is included without limitation in
72
the term "modification".)  Each licensee is addressed as "you".
73

  
74
Activities other than copying, distribution and modification are not
75
covered by this License; they are outside its scope.  The act of
76
running the Program is not restricted, and the output from the Program
77
is covered only if its contents constitute a work based on the
78
Program (independent of having been made by running the Program).
79
Whether that is true depends on what the Program does.
80

  
81
  1. You may copy and distribute verbatim copies of the Program's
82
source code as you receive it, in any medium, provided that you
83
conspicuously and appropriately publish on each copy an appropriate
84
copyright notice and disclaimer of warranty; keep intact all the
85
notices that refer to this License and to the absence of any warranty;
86
and give any other recipients of the Program a copy of this License
87
along with the Program.
88

  
89
You may charge a fee for the physical act of transferring a copy, and
90
you may at your option offer warranty protection in exchange for a fee.
91

  
92
  2. You may modify your copy or copies of the Program or any portion
93
of it, thus forming a work based on the Program, and copy and
94
distribute such modifications or work under the terms of Section 1
95
above, provided that you also meet all of these conditions:
96

  
97
    a) You must cause the modified files to carry prominent notices
98
    stating that you changed the files and the date of any change.
99

  
100
    b) You must cause any work that you distribute or publish, that in
101
    whole or in part contains or is derived from the Program or any
102
    part thereof, to be licensed as a whole at no charge to all third
103
    parties under the terms of this License.
104

  
105
    c) If the modified program normally reads commands interactively
106
    when run, you must cause it, when started running for such
107
    interactive use in the most ordinary way, to print or display an
108
    announcement including an appropriate copyright notice and a
109
    notice that there is no warranty (or else, saying that you provide
110
    a warranty) and that users may redistribute the program under
111
    these conditions, and telling the user how to view a copy of this
112
    License.  (Exception: if the Program itself is interactive but
113
    does not normally print such an announcement, your work based on
114
    the Program is not required to print an announcement.)
115

  
116

  
117

  
118
These requirements apply to the modified work as a whole.  If
119
identifiable sections of that work are not derived from the Program,
120
and can be reasonably considered independent and separate works in
121
themselves, then this License, and its terms, do not apply to those
122
sections when you distribute them as separate works.  But when you
123
distribute the same sections as part of a whole which is a work based
124
on the Program, the distribution of the whole must be on the terms of
125
this License, whose permissions for other licensees extend to the
126
entire whole, and thus to each and every part regardless of who wrote it.
127

  
128
Thus, it is not the intent of this section to claim rights or contest
129
your rights to work written entirely by you; rather, the intent is to
130
exercise the right to control the distribution of derivative or
131
collective works based on the Program.
132

  
133
In addition, mere aggregation of another work not based on the Program
134
with the Program (or with a work based on the Program) on a volume of
135
a storage or distribution medium does not bring the other work under
136
the scope of this License.
137

  
138
  3. You may copy and distribute the Program (or a work based on it,
139
under Section 2) in object code or executable form under the terms of
140
Sections 1 and 2 above provided that you also do one of the following:
141

  
142
    a) Accompany it with the complete corresponding machine-readable
143
    source code, which must be distributed under the terms of Sections
144
    1 and 2 above on a medium customarily used for software interchange; or,
145

  
146
    b) Accompany it with a written offer, valid for at least three
147
    years, to give any third party, for a charge no more than your
148
    cost of physically performing source distribution, a complete
149
    machine-readable copy of the corresponding source code, to be
150
    distributed under the terms of Sections 1 and 2 above on a medium
151
    customarily used for software interchange; or,
152

  
153
    c) Accompany it with the information you received as to the offer
154
    to distribute corresponding source code.  (This alternative is
155
    allowed only for noncommercial distribution and only if you
156
    received the program in object code or executable form with such
157
    an offer, in accord with Subsection b above.)
158

  
159
The source code for a work means the preferred form of the work for
160
making modifications to it.  For an executable work, complete source
161
code means all the source code for all modules it contains, plus any
162
associated interface definition files, plus the scripts used to
163
control compilation and installation of the executable.  However, as a
164
special exception, the source code distributed need not include
165
anything that is normally distributed (in either source or binary
166
form) with the major components (compiler, kernel, and so on) of the
167
operating system on which the executable runs, unless that component
168
itself accompanies the executable.
169

  
170
If distribution of executable or object code is made by offering
171
access to copy from a designated place, then offering equivalent
172
access to copy the source code from the same place counts as
173
distribution of the source code, even though third parties are not
174
compelled to copy the source along with the object code.
175

  
176

  
177

  
178
  4. You may not copy, modify, sublicense, or distribute the Program
179
except as expressly provided under this License.  Any attempt
180
otherwise to copy, modify, sublicense or distribute the Program is
181
void, and will automatically terminate your rights under this License.
182
However, parties who have received copies, or rights, from you under
183
this License will not have their licenses terminated so long as such
184
parties remain in full compliance.
185

  
186
  5. You are not required to accept this License, since you have not
187
signed it.  However, nothing else grants you permission to modify or
188
distribute the Program or its derivative works.  These actions are
189
prohibited by law if you do not accept this License.  Therefore, by
190
modifying or distributing the Program (or any work based on the
191
Program), you indicate your acceptance of this License to do so, and
192
all its terms and conditions for copying, distributing or modifying
193
the Program or works based on it.
194

  
195
  6. Each time you redistribute the Program (or any work based on the
196
Program), the recipient automatically receives a license from the
197
original licensor to copy, distribute or modify the Program subject to
198
these terms and conditions.  You may not impose any further
199
restrictions on the recipients' exercise of the rights granted herein.
200
You are not responsible for enforcing compliance by third parties to
201
this License.
202

  
203
  7. If, as a consequence of a court judgment or allegation of patent
204
infringement or for any other reason (not limited to patent issues),
205
conditions are imposed on you (whether by court order, agreement or
206
otherwise) that contradict the conditions of this License, they do not
207
excuse you from the conditions of this License.  If you cannot
208
distribute so as to satisfy simultaneously your obligations under this
209
License and any other pertinent obligations, then as a consequence you
210
may not distribute the Program at all.  For example, if a patent
211
license would not permit royalty-free redistribution of the Program by
212
all those who receive copies directly or indirectly through you, then
213
the only way you could satisfy both it and this License would be to
214
refrain entirely from distribution of the Program.
215

  
216
If any portion of this section is held invalid or unenforceable under
217
any particular circumstance, the balance of the section is intended to
218
apply and the section as a whole is intended to apply in other
219
circumstances.
220

  
221
It is not the purpose of this section to induce you to infringe any
222
patents or other property right claims or to contest validity of any
223
such claims; this section has the sole purpose of protecting the
224
integrity of the free software distribution system, which is
225
implemented by public license practices.  Many people have made
226
generous contributions to the wide range of software distributed
227
through that system in reliance on consistent application of that
228
system; it is up to the author/donor to decide if he or she is willing
229
to distribute software through any other system and a licensee cannot
230
impose that choice.
231

  
232
This section is intended to make thoroughly clear what is believed to
233
be a consequence of the rest of this License.
234

  
235

  
236

  
237
  8. If the distribution and/or use of the Program is restricted in
238
certain countries either by patents or by copyrighted interfaces, the
239
original copyright holder who places the Program under this License
240
may add an explicit geographical distribution limitation excluding
241
those countries, so that distribution is permitted only in or among
242
countries not thus excluded.  In such case, this License incorporates
243
the limitation as if written in the body of this License.
244

  
245
  9. The Free Software Foundation may publish revised and/or new versions
246
of the General Public License from time to time.  Such new versions will
247
be similar in spirit to the present version, but may differ in detail to
248
address new problems or concerns.
249

  
250
Each version is given a distinguishing version number.  If the Program
251
specifies a version number of this License which applies to it and "any
252
later version", you have the option of following the terms and conditions
253
either of that version or of any later version published by the Free
254
Software Foundation.  If the Program does not specify a version number of
255
this License, you may choose any version ever published by the Free Software
256
Foundation.
257

  
258
  10. If you wish to incorporate parts of the Program into other free
259
programs whose distribution conditions are different, write to the author
260
to ask for permission.  For software which is copyrighted by the Free
261
Software Foundation, write to the Free Software Foundation; we sometimes
262
make exceptions for this.  Our decision will be guided by the two goals
263
of preserving the free status of all derivatives of our free software and
264
of promoting the sharing and reuse of software generally.
265

  
266
			    NO WARRANTY
267

  
268
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
269
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
270
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
271
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
272
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
273
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
274
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
275
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
276
REPAIR OR CORRECTION.
277

  
278
  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
279
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
280
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
281
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
282
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
283
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
284
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
285
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
286
POSSIBILITY OF SUCH DAMAGES.
287

  
288
		     END OF TERMS AND CONDITIONS
289

  
290

  
291

  
292
	    How to Apply These Terms to Your New Programs
293

  
294
  If you develop a new program, and you want it to be of the greatest
295
possible use to the public, the best way to achieve this is to make it
296
free software which everyone can redistribute and change under these terms.
297

  
298
  To do so, attach the following notices to the program.  It is safest
299
to attach them to the start of each source file to most effectively
300
convey the exclusion of warranty; and each file should have at least
301
the "copyright" line and a pointer to where the full notice is found.
302

  
303
    <one line to give the program's name and a brief idea of what it does.>
304
    Copyright (C) <year>  <name of author>
305

  
306
    This program is free software; you can redistribute it and/or modify
307
    it under the terms of the GNU General Public License as published by
308
    the Free Software Foundation; either version 2 of the License, or
309
    (at your option) any later version.
310

  
311
    This program is distributed in the hope that it will be useful,
312
    but WITHOUT ANY WARRANTY; without even the implied warranty of
313
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
314
    GNU General Public License for more details.
315

  
316
    You should have received a copy of the GNU General Public License
317
    along with this program; if not, write to the Free Software
318
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
319

  
320

  
321
Also add information on how to contact you by electronic and paper mail.
322

  
323
If the program is interactive, make it output a short notice like this
324
when it starts in an interactive mode:
325

  
326
    Gnomovision version 69, Copyright (C) year name of author
327
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
328
    This is free software, and you are welcome to redistribute it
329
    under certain conditions; type `show c' for details.
330

  
331
The hypothetical commands `show w' and `show c' should show the appropriate
332
parts of the General Public License.  Of course, the commands you use may
333
be called something other than `show w' and `show c'; they could even be
334
mouse-clicks or menu items--whatever suits your program.
335

  
336
You should also get your employer (if you work as a programmer) or your
337
school, if any, to sign a "copyright disclaimer" for the program, if
338
necessary.  Here is a sample; alter the names:
339

  
340
  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
341
  `Gnomovision' (which makes passes at compilers) written by James Hacker.
342

  
343
  <signature of Ty Coon>, 1 April 1989
344
  Ty Coon, President of Vice
345

  
346
This General Public License does not permit incorporating your program into
347
proprietary programs.  If your program is a subroutine library, you may
348
consider it more useful to permit linking proprietary applications with the
349
library.  If this is what you want to do, use the GNU Library General
350
Public License instead of this License.
351

  
tags/tmp_build/build/distribution/IzPack/legal/Ant-Licence.txt
1
/*
2
 * ============================================================================
3
 *                   The Apache Software License, Version 1.1
4
 * ============================================================================
5
 * 
6
 *    Copyright (C) 2000-2002 The Apache Software Foundation. All
7
 *    rights reserved.
8
 * 
9
 * Redistribution and use in source and binary forms, with or without modifica-
10
 * tion, are permitted provided that the following conditions are met:
11
 * 
12
 * 1. Redistributions of  source code must  retain the above copyright  notice,
13
 *    this list of conditions and the following disclaimer.
14
 * 
15
 * 2. Redistributions in binary form must reproduce the above copyright notice,
16
 *    this list of conditions and the following disclaimer in the documentation
17
 *    and/or other materials provided with the distribution.
18
 * 
19
 * 3. The end-user documentation included with the redistribution, if any, must
20
 *    include  the following  acknowledgment:  "This product includes  software
21
 *    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
22
 *    Alternately, this  acknowledgment may  appear in the software itself,  if
23
 *    and wherever such third-party acknowledgments normally appear.
24
 * 
25
 * 4. The names "Ant" and  "Apache Software Foundation"  must not be used to
26
 *    endorse  or promote  products derived  from this  software without  prior
27
 *    written permission. For written permission, please contact
28
 *    apache@apache.org.
29
 * 
30
 * 5. Products  derived from this software may not  be called "Apache", nor may
31
 *    "Apache" appear  in their name,  without prior written permission  of the
32
 *    Apache Software Foundation.
33
 * 
34
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
35
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
36
 * FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
37
 * APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
38
 * INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
39
 * DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
40
 * OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
41
 * ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
42
 * (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
43
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
 * 
45
 * This software  consists of voluntary contributions made  by many individuals
46
 * on behalf of the  Apache Software Foundation.  For more  information  on the 
47
 * Apache Software Foundation, please see <http://www.apache.org/>.
48
 *
49
 */
tags/tmp_build/build/distribution/IzPack/legal/Metouia-Licence.txt
1
		  GNU LESSER GENERAL PUBLIC LICENSE
2
		       Version 2.1, February 1999
3

  
4
 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6
 Everyone is permitted to copy and distribute verbatim copies
7
 of this license document, but changing it is not allowed.
8

  
9
[This is the first released version of the Lesser GPL.  It also counts
10
 as the successor of the GNU Library Public License, version 2, hence
11
 the version number 2.1.]
12

  
13
			    Preamble
14

  
15
  The licenses for most software are designed to take away your
16
freedom to share and change it.  By contrast, the GNU General Public
17
Licenses are intended to guarantee your freedom to share and change
18
free software--to make sure the software is free for all its users.
19

  
20
  This license, the Lesser General Public License, applies to some
21
specially designated software packages--typically libraries--of the
22
Free Software Foundation and other authors who decide to use it.  You
23
can use it too, but we suggest you first think carefully about whether
24
this license or the ordinary General Public License is the better
25
strategy to use in any particular case, based on the explanations below.
26

  
27
  When we speak of free software, we are referring to freedom of use,
28
not price.  Our General Public Licenses are designed to make sure that
29
you have the freedom to distribute copies of free software (and charge
30
for this service if you wish); that you receive source code or can get
31
it if you want it; that you can change the software and use pieces of
32
it in new free programs; and that you are informed that you can do
33
these things.
34

  
35
  To protect your rights, we need to make restrictions that forbid
36
distributors to deny you these rights or to ask you to surrender these
37
rights.  These restrictions translate to certain responsibilities for
38
you if you distribute copies of the library or if you modify it.
39

  
40
  For example, if you distribute copies of the library, whether gratis
41
or for a fee, you must give the recipients all the rights that we gave
42
you.  You must make sure that they, too, receive or can get the source
43
code.  If you link other code with the library, you must provide
44
complete object files to the recipients, so that they can relink them
45
with the library after making changes to the library and recompiling
46
it.  And you must show them these terms so they know their rights.
47

  
48
  We protect your rights with a two-step method: (1) we copyright the
49
library, and (2) we offer you this license, which gives you legal
50
permission to copy, distribute and/or modify the library.
51

  
52
  To protect each distributor, we want to make it very clear that
53
there is no warranty for the free library.  Also, if the library is
54
modified by someone else and passed on, the recipients should know
55
that what they have is not the original version, so that the original
56
author's reputation will not be affected by problems that might be
57
introduced by others.
58

  
59
  Finally, software patents pose a constant threat to the existence of
60
any free program.  We wish to make sure that a company cannot
61
effectively restrict the users of a free program by obtaining a
62
restrictive license from a patent holder.  Therefore, we insist that
63
any patent license obtained for a version of the library must be
64
consistent with the full freedom of use specified in this license.
65

  
66
  Most GNU software, including some libraries, is covered by the
67
ordinary GNU General Public License.  This license, the GNU Lesser
68
General Public License, applies to certain designated libraries, and
69
is quite different from the ordinary General Public License.  We use
70
this license for certain libraries in order to permit linking those
71
libraries into non-free programs.
72

  
73
  When a program is linked with a library, whether statically or using
74
a shared library, the combination of the two is legally speaking a
75
combined work, a derivative of the original library.  The ordinary
76
General Public License therefore permits such linking only if the
77
entire combination fits its criteria of freedom.  The Lesser General
78
Public License permits more lax criteria for linking other code with
79
the library.
80

  
81
  We call this license the "Lesser" General Public License because it
82
does Less to protect the user's freedom than the ordinary General
83
Public License.  It also provides other free software developers Less
84
of an advantage over competing non-free programs.  These disadvantages
85
are the reason we use the ordinary General Public License for many
86
libraries.  However, the Lesser license provides advantages in certain
87
special circumstances.
88

  
89
  For example, on rare occasions, there may be a special need to
90
encourage the widest possible use of a certain library, so that it becomes
91
a de-facto standard.  To achieve this, non-free programs must be
92
allowed to use the library.  A more frequent case is that a free
93
library does the same job as widely used non-free libraries.  In this
94
case, there is little to gain by limiting the free library to free
95
software only, so we use the Lesser General Public License.
96

  
97
  In other cases, permission to use a particular library in non-free
98
programs enables a greater number of people to use a large body of
99
free software.  For example, permission to use the GNU C Library in
100
non-free programs enables many more people to use the whole GNU
101
operating system, as well as its variant, the GNU/Linux operating
102
system.
103

  
104
  Although the Lesser General Public License is Less protective of the
105
users' freedom, it does ensure that the user of a program that is
106
linked with the Library has the freedom and the wherewithal to run
107
that program using a modified version of the Library.
108

  
109
  The precise terms and conditions for copying, distribution and
110
modification follow.  Pay close attention to the difference between a
111
"work based on the library" and a "work that uses the library".  The
112
former contains code derived from the library, whereas the latter must
113
be combined with the library in order to run.
114

  
115
		  GNU LESSER GENERAL PUBLIC LICENSE
116
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117

  
118
  0. This License Agreement applies to any software library or other
119
program which contains a notice placed by the copyright holder or
120
other authorized party saying it may be distributed under the terms of
121
this Lesser General Public License (also called "this License").
122
Each licensee is addressed as "you".
123

  
124
  A "library" means a collection of software functions and/or data
125
prepared so as to be conveniently linked with application programs
126
(which use some of those functions and data) to form executables.
127

  
128
  The "Library", below, refers to any such software library or work
129
which has been distributed under these terms.  A "work based on the
130
Library" means either the Library or any derivative work under
131
copyright law: that is to say, a work containing the Library or a
132
portion of it, either verbatim or with modifications and/or translated
133
straightforwardly into another language.  (Hereinafter, translation is
134
included without limitation in the term "modification".)
135

  
136
  "Source code" for a work means the preferred form of the work for
137
making modifications to it.  For a library, complete source code means
138
all the source code for all modules it contains, plus any associated
139
interface definition files, plus the scripts used to control compilation
140
and installation of the library.
141

  
142
  Activities other than copying, distribution and modification are not
143
covered by this License; they are outside its scope.  The act of
144
running a program using the Library is not restricted, and output from
145
such a program is covered only if its contents constitute a work based
146
on the Library (independent of the use of the Library in a tool for
147
writing it).  Whether that is true depends on what the Library does
148
and what the program that uses the Library does.
149
  
150
  1. You may copy and distribute verbatim copies of the Library's
151
complete source code as you receive it, in any medium, provided that
152
you conspicuously and appropriately publish on each copy an
153
appropriate copyright notice and disclaimer of warranty; keep intact
154
all the notices that refer to this License and to the absence of any
155
warranty; and distribute a copy of this License along with the
156
Library.
157

  
158
  You may charge a fee for the physical act of transferring a copy,
159
and you may at your option offer warranty protection in exchange for a
160
fee.
161

  
162
  2. You may modify your copy or copies of the Library or any portion
163
of it, thus forming a work based on the Library, and copy and
164
distribute such modifications or work under the terms of Section 1
165
above, provided that you also meet all of these conditions:
166

  
167
    a) The modified work must itself be a software library.
168

  
169
    b) You must cause the files modified to carry prominent notices
170
    stating that you changed the files and the date of any change.
171

  
172
    c) You must cause the whole of the work to be licensed at no
173
    charge to all third parties under the terms of this License.
174

  
175
    d) If a facility in the modified Library refers to a function or a
176
    table of data to be supplied by an application program that uses
177
    the facility, other than as an argument passed when the facility
178
    is invoked, then you must make a good faith effort to ensure that,
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff