Skip to content

Commit 7eddedc

Browse files
- ADD: Initial import to Gitub.
1 parent 223ad85 commit 7eddedc

26 files changed

+2659
-0
lines changed

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/.idea/
2+
3+
# Compiled class file
4+
*.class
5+
/bin/
6+
/out/
7+
/bin_jar/
8+
9+
# Log file
10+
*.log
11+
12+
# BlueJ files
13+
*.ctxt
14+
15+
# Mobile Tools for Java (J2ME)
16+
.mtj.tmp/
17+
18+
# Package Files #
19+
*.war
20+
*.ear
21+
*.zip
22+
*.tar.gz
23+
*.rar
24+
25+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
26+
hs_err_pid*
27+
28+
/installer/*.exe
29+
/installer/*.dmg
30+
/installer/*.sh
31+
/installer/md5sums
32+
/installer/updates.xml
33+
/installer/output.txt

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lit
2+
3+
![Logo](img/logo.png?raw=true "Logo")
4+
5+
Lit (Launch it) is a simple application launcher written in Java.
6+
7+
## Screenshot
8+
9+
![Logo](img/screenshot.png?raw=true "Logo")
10+
11+
## Acknowledgements
12+
13+
Lit uses [install4j](https://www.ej-technologies.com/products/install4j/overview.html), the multi-platform installer builder.
14+
15+
<a href="https://www.ej-technologies.com/products/install4j/overview.html"><img src="https://www.ej-technologies.com/images/product_banners/install4j_medium.png" width="120" height="34" ></a>

build.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<!--
2+
~ Copyright 2018 Sebastian Raubach <[email protected]>
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<project name="Lit" basedir="." default="clean-build">
18+
19+
<property name="src.dir" value="src"/>
20+
21+
<!-- Define the necessary paths -->
22+
<property name="build.dir" value="bin_jar"/>
23+
<property name="lib.dir" value="lib"/>
24+
<property name="lib.deploy.dir" value="lib_swt"/>
25+
<property name="classes.dir" value="${build.dir}/classes"/>
26+
<property name="img.dir" value="img"/>
27+
<property name="jar.dir" value="${build.dir}/jar"/>
28+
29+
<!-- Define the main class -->
30+
<property name="main-class" value="uk.ac.hutton.lit.ui.Lit"/>
31+
32+
<!-- Define the class path -->
33+
<path id="classpath">
34+
<fileset dir="${lib.dir}" includes="**/*.jar"/>
35+
<fileset dir="${lib.deploy.dir}" includes="**/*.jar"/>
36+
</path>
37+
38+
<pathconvert pathsep=" " property="base.classpath">
39+
<path refid="classpath"/>
40+
<mapper>
41+
<chainedmapper>
42+
<flattenmapper/>
43+
<globmapper from="*.jar" to="*.jar"/>
44+
</chainedmapper>
45+
</mapper>
46+
</pathconvert>
47+
48+
<!-- Clean previously built files -->
49+
<target name="clean">
50+
<delete dir="${build.dir}"/>
51+
</target>
52+
53+
<!-- Compile the project -->
54+
<target name="compile">
55+
<mkdir dir="${classes.dir}"/>
56+
<javac classpathref="classpath" destdir="${classes.dir}" encoding="utf-8" includeantruntime="false" source="8" srcdir="${src.dir}"
57+
target="8"/>
58+
</target>
59+
60+
<!-- Define classpath and create the jar folder -->
61+
<target name="pre_jar" depends="compile">
62+
<mkdir dir="${jar.dir}"/>
63+
</target>
64+
65+
<!-- Create the jar files -->
66+
<target name="jar" depends="pre_jar">
67+
<jar basedir="${classes.dir}" destfile="${jar.dir}/${ant.project.name}.jar">
68+
<manifest>
69+
<attribute name="Main-Class" value="${main-class}"/>
70+
<attribute name="Class-Path" value="./ ${base.classpath}"/>
71+
<attribute name="Implementation-Version" value="${i4j.version}"/>
72+
</manifest>
73+
74+
<zipfileset dir="${img.dir}" includes="**/*.*" prefix="img"/>
75+
76+
<!-- Include the licence -->
77+
<zipfileset dir="${basedir}" includes="LICENSE"/>
78+
</jar>
79+
80+
<!-- Copy the copyright information -->
81+
<copy file="LICENSE" overwrite="true" todir="${jar.dir}"/>
82+
</target>
83+
84+
<target name="clean-build" depends="clean,jar"/>
85+
86+
<!-- Ask for the version number -->
87+
<target name="getversion">
88+
<input addproperty="i4j.version" message="Enter the version number of Lit:"/>
89+
</target>
90+
91+
<!-- Build the installers -->
92+
<target name="install4j" depends="getversion, clean-build">
93+
<taskdef name="install4j" classname="com.install4j.Install4JTask" classpath="C:\Program Files\install4j7\bin\ant.jar"/>
94+
95+
<delete>
96+
<fileset dir="installer" includes="**/*.exe"/>
97+
<fileset dir="installer" includes="**/*.sh"/>
98+
<fileset dir="installer" includes="**/*.dmg"/>
99+
</delete>
100+
101+
<install4j projectfile="installer/lit.install4j" release="${i4j.version}"/>
102+
</target>
103+
104+
</project>

img/logo.icns

66.7 KB
Binary file not shown.

img/logo.ico

361 KB
Binary file not shown.

img/logo.png

4.87 KB
Loading

img/logo.svg

Lines changed: 133 additions & 0 deletions
Loading

img/screenshot.png

15.8 KB
Loading

0 commit comments

Comments
 (0)