createEclipseProject.sh 2.44 KB
Newer Older
1
2
#!/bin/sh

3
mkdir -p jvlc-eclipse/src/main/java
4
5
mkdir jvlc-eclipse/bin

6
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > jvlc-eclipse/.classpath
7
echo "<classpath>"  >> jvlc-eclipse/.classpath
8
9
10
echo "	<classpathentry kind=\"src\" path=\"src/main/java\"/>" >> jvlc-eclipse/.classpath
echo "	<classpathentry kind=\"con\" path=\"org.eclipse.jdt.launching.JRE_CONTAINER\"/>" >> jvlc-eclipse/.classpath
echo "	<classpathentry kind=\"output\" path=\"bin\"/>" >> jvlc-eclipse/.classpath
11
12
13
echo "</classpath>" >> jvlc-eclipse/.classpath


14
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > jvlc-eclipse/.project
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
echo "<projectDescription>" >> jvlc-eclipse/.project
echo "	<name>jvlc-eclipse</name>" >> jvlc-eclipse/.project
echo "	<comment></comment>" >> jvlc-eclipse/.project
echo "	<projects>" >> jvlc-eclipse/.project
echo "	</projects>" >> jvlc-eclipse/.project
echo "	<buildSpec>" >> jvlc-eclipse/.project
echo "		<buildCommand>" >> jvlc-eclipse/.project
echo "			<name>org.eclipse.jdt.core.javabuilder</name>" >> jvlc-eclipse/.project
echo "			<arguments>" >> jvlc-eclipse/.project
echo "			</arguments>" >> jvlc-eclipse/.project
echo "		</buildCommand>" >> jvlc-eclipse/.project
echo "		<buildCommand>" >> jvlc-eclipse/.project
echo "			<name>org.eclipse.pde.ManifestBuilder</name>" >> jvlc-eclipse/.project
echo "			<arguments>" >> jvlc-eclipse/.project
echo "			</arguments>" >> jvlc-eclipse/.project
echo "		</buildCommand>" >> jvlc-eclipse/.project
echo "		<buildCommand>" >> jvlc-eclipse/.project
echo "			<name>org.eclipse.pde.SchemaBuilder</name>" >> jvlc-eclipse/.project
echo "			<arguments>" >> jvlc-eclipse/.project
echo "			</arguments>" >> jvlc-eclipse/.project
echo "		</buildCommand>" >> jvlc-eclipse/.project
echo "		<buildCommand>" >> jvlc-eclipse/.project
echo "			<name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>" >> jvlc-eclipse/.project
echo "			<arguments>" >> jvlc-eclipse/.project
echo "			</arguments>" >> jvlc-eclipse/.project
echo "		</buildCommand>" >> jvlc-eclipse/.project
echo "	</buildSpec>" >> jvlc-eclipse/.project
echo "	<natures>" >> jvlc-eclipse/.project
echo "		<nature>org.eclipse.jdt.core.javanature</nature>" >> jvlc-eclipse/.project
echo "	</natures>" >> jvlc-eclipse/.project
echo "</projectDescription>" >> jvlc-eclipse/.project

47
48
49
50
51
52
cd jvlc-eclipse/src/main/java
ln -s ../../../../org
ln -s ../../../../VlcClient.java
ln -s ../../../../VLCExample.java

echo "Project created in jvlc-eclipse folder. Import as existing project into eclipse."
53
54