more quickstart prep

git-svn-id: https://svn.apache.org/repos/asf/incubator/jsecurity/trunk@711084 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build.xml b/build.xml
index 891b4c8..871e2cc 100644
--- a/build.xml
+++ b/build.xml
@@ -279,6 +279,10 @@
         <ant dir="samples/quickstart"/>
     </target>
 
+    <target name="samples.quickstart.run" depends="samples.quickstart" description="Runs the sample quickstart class">
+        <ant dir="samples/quickstart" target="run"/>
+    </target>
+
     <target name="samples.web" depends="jar" description="Creates the JSecurity sample webapp .war">
         <ant dir="samples/web"/>
     </target>
diff --git a/ivy.xml b/ivy.xml
index ffc8d2a..78ccd8b 100644
--- a/ivy.xml
+++ b/ivy.xml
@@ -57,6 +57,7 @@
         <dependency org="net.sf.ehcache" name="ehcache" rev="1.4.1" transitive="false" conf="compile,samples"/>
         <dependency org="backport-util-concurrent" name="backport-util-concurrent" rev="3.1" transitive="false"
                     conf="samples"/>
+        <dependency org="xerces" name="xercesImpl" rev="2.8.1" transitive="false" conf="samples"/>
         <dependency org="quartz" name="quartz" rev="1.5.2" transitive="false" conf="compile"/>
         <dependency org="org.springframework" name="spring" rev="2.5.1" transitive="false" conf="compile,samples"/>
         <dependency org="org.springframework" name="spring-webmvc" rev="2.5.1" transitive="false" conf="samples"/>
diff --git a/samples/quickstart/build.xml b/samples/quickstart/build.xml
index 0940e35..3071571 100644
--- a/samples/quickstart/build.xml
+++ b/samples/quickstart/build.xml
@@ -41,6 +41,19 @@
         <fileset dir="${root.dist.dir}" includes="jsecurity.jar"/>
     </path>
 
+    <path id="run.path">
+        <pathelement location="${classes.dir}"/>
+        <fileset dir="${lib.dir}/samples">
+            <include name="ehcache.jar"/>
+            <!-- needed by ehcache, not jsecurity: -->
+            <include name="backport-util-concurrent.jar"/>
+            <include name="commons-logging.jar"/>
+            <!-- Not normally needed, but mac os x JDK needs it for some reason: -->
+            <include name="xercesImpl.jar"/>
+        </fileset>
+        <fileset dir="${root.dist.dir}" includes="jsecurity.jar"/>
+    </path>
+
     <!-- ===================================================================
   -  clean - clean all build remnants from this submodule
   - ==================================================================== -->
@@ -91,4 +104,10 @@
  -  =================================================================== -->
     <target name="dist" depends="compile,jar" description="Creates the quickstart .jar"/>
 
+    <target name="run" depends="dist" description="Runs the simple quickstart class">
+
+        <java classname="Quickstart" classpathref="run.path"/>
+
+    </target>
+
 </project>
\ No newline at end of file
diff --git a/samples/quickstart/src/Quickstart.java b/samples/quickstart/src/Quickstart.java
index 36796b1..325a021 100644
--- a/samples/quickstart/src/Quickstart.java
+++ b/samples/quickstart/src/Quickstart.java
@@ -36,6 +36,8 @@
 
     public static void main( String[] args ) {
 
+        System.out.println("Name: " + javax.xml.parsers.SAXParserFactory.newInstance().getClass().getName());
+
         //Most applications would never instantiate a SecurityManager directly - you would instead configure
         //JSecurity in web.xml or a container (JEE, Spring, etc).
         //But, since this is a quickstart, we just want you to get a feel for how the JSecurity API looks, so this