basic instructions for maven2
authorFilippo Carone <littlejohn@videolan.org>
Thu, 13 Mar 2008 21:52:31 +0000 (22:52 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Thu, 13 Mar 2008 21:52:31 +0000 (22:52 +0100)
README
createEclipseProject.sh [deleted file]

diff --git a/README b/README
index 2e30930..2b438f4 100644 (file)
--- a/README
+++ b/README
@@ -5,37 +5,22 @@
 Compiling JVLC
 --------------
 
- In order to use these bindings you have to compile vlc from source, be sure
-to use the latest git version (see http://wiki.videolan.org/Git for instructions
-on how to get the latest vlc version).
+ JVLC uses maven2 as a project the management tool, take a look at
 
- JVLC depends on JNA, you can download JNA from http://jna.dev.java.net .
+http://maven.apache.org
 
JVLC is developed using the Sun JDK version 6, but version 5 should be fine too.
to download and for general instructions on how to use it.
 
- Until the build.xml will be ready, you may compile jvlc issueing from the bindings
-java folder:
+ To compile the project, run from the bindings/java folder:
 
-mkdir output
-javac -d output -cp <path-to>/jna.jar -g org/videolan/jvlc/internal/*.java org/videolan/jvlc/event/*.java  org/videolan/jvlc/*.java VLCExample.java VlcClient.java
+mvn install
 
- where <path-to> is the folder where the file jna.jar is contained
- and in the output folder you'll find the compiled classes.
+ To import the jvlc project into the eclipse IDE:
 
- You may also import jvlc in eclipse running the createEclipseProject.sh script.
+mvn eclipse:eclipse
 
+ and the import as an existing Java project.
 
-Running JVLC Example
---------------------
-
- To run a Java VLC example issue (be sure you have an a.avi and a.mp3 files
-in your user.dir folder):
-
-java -cp .:<path-to>jna.jar -Djna.library.path=/usr/local/lib VLCExample
-
-
-(if you have specified a prefix in configure, change /usr/local/lib to 
-PREFIX/lib)
 
 
  Happy playing.
diff --git a/createEclipseProject.sh b/createEclipseProject.sh
deleted file mode 100755 (executable)
index 8c5f0ee..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-mkdir -p jvlc-eclipse/src/main/java
-mkdir jvlc-eclipse/bin
-
-echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > jvlc-eclipse/.classpath
-echo "<classpath>"  >> jvlc-eclipse/.classpath
-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
-echo "</classpath>" >> jvlc-eclipse/.classpath
-
-
-echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > jvlc-eclipse/.project
-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
-
-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."
-
-