On 11/9/2011 4:55 PM, Chris Betts wrote:
Hi Doug,

    thanks for that - I need to look this over (the problem with using an IDE 
most of the time :-) ).

    You are correct, jxplorer.jar should be built in the jars directory.  The 
other three jars are libraries and should not be built.

    I'll have a look at your suggestions!

    cheers,

     - Chris


Attached is an SVN diff of the files I changed:

 build.xml
   All the changes from the previous note, plus the version number change.
   It looks like the version number is in some other files too which I did not 
change.

 jxplorer.bat
  Allows additional parameters to be passed, include the location of the 
krb5.ini
  file used wit hte GSSAPI. (I reported these same changes a few years ago, and
  they were never incorporated in to this file.)

 jxplorer.sh
  Allows additional parameters to be passes, include the location of a user
  KRB5CCANME or the default ticket cache location as used by the operating 
system.
  and fixes a problem with a case statement not supporting the use of $(command)
  by replace it with two commands. (Solaris did not support the $(command)
  (I reported these same changes a few years ago, and they were never 
incorporated
  in to this file.)


After running a build for the dist directory and then copying the dist directory
to a new location /afs/anl.gov/appl/JXplorer-dev/jxplorer

  cd /afs/anl.gov/appl/JXplorer-dev/jxplorer
 ./jxplorer.sh console

The output of a simple startup is attached. there are a number of problems with
locating themes, language, htmldocs, com.pegacat.jxworkbench.JXWorkBenchBrowser,
templates, and icons.

The test was run on on a Solaris 10 sparc system.
 ./jxplorer.sh console



On Thu, Nov 10, 2011 at 9:30 AM, Douglas E. Engert <deeng...@anl.gov 
<mailto:deeng...@anl.gov>> wrote:



    On 11/7/2011 10:46 PM, Chris Betts wrote:

        Hi Folks,

             we've got a new version of JXplorer in beta; this time with 
multiple windows allowing you can copy and paste between directories.

        
https://sourceforge.net/__projects/jxplorer/files/__jxplorer/version%203.3%20%__28beta%201%29/
 
<https://sourceforge.net/projects/jxplorer/files/jxplorer/version%203.3%20%28beta%201%29/>

            feedback welcome!


    I am trying to compile from SVN:

      Last Changed Author: pegacat
      Last Changed Rev: 57
      Last Changed Date: 2011-11-07 20:30:17 -0600 (Mon, 07 Nov 2011)

    There appears to be some discrepancies in the build.xml as to the location 
of
    the jxplorer.jar file.

    <jar jarfile="${jars}/jxplorer.jar"__>
    says the jar file should be in the jars directory.

    The clean section has:
    <target name="clean" depends="init" description="Cleans all build 
artifacts">
    <delete file="jxplorer.jar"/>
    which says it is in the current directory?

    The clean section does not delete the classes directory either,
    so a new build without any source changes just uses the old classes.
    (Found this out when testing the target= and source=. See below.)

    The SNV contains a jars/jxplorer.jar as well as three other jar files.
    Since the build.xml is building the jars/jxplorer.jar, I would think
    jxplorer.jar should not be in SVN repository at all.

    The dist section copies jars/*.jars and ./jxplorer.jar to the dist
    which would only copy one of the jxplorer.jar files, even if two existed.

    The build section has target=1.4 and source=1.4  To compile, I had to set
    these to 1.5. (1.6 gave errors, where as 1.5 gave a lot of warnings.)

    So it appears that once the classes are built, a new jars/jxplorer.jar
    is created.  But a clean does not clean up the classes or the
    jars/jxplorer.jar, and so there is no way to get back to a clean
    SVN repository.


    I am not much of a Java programmer, but attached are some suggestions
    for the build.xml.

    And should the help.jar, jhall.jar and junit.jar also be built?
    Where is the source for these?

    Thanks.



            cheers,

            - Chris

        --
        Dr Christopher Betts
        Pegacat Software
        Melbourne, Australia
        m: 0408 533 456


        
------------------------------__------------------------------__------------------
        RSA(R) Conference 2012
        Save $700 by Nov 18
        Register now
        http://p.sf.net/sfu/rsa-__sfdev2dev1 
<http://p.sf.net/sfu/rsa-sfdev2dev1>



        _________________________________________________
        Jxplorer-users mailing list
        Jxplorer-users@lists.__sourceforge.net 
<mailto:Jxplorer-users@lists.sourceforge.net>
        https://lists.sourceforge.net/__lists/listinfo/jxplorer-users 
<https://lists.sourceforge.net/lists/listinfo/jxplorer-users>


    --

      Douglas E. Engert <deeng...@anl.gov <mailto:deeng...@anl.gov>>
      Argonne National Laboratory
      9700 South Cass Avenue
      Argonne, Illinois  60439
    (630) 252-5444 <tel:%28630%29%20252-5444>

    
------------------------------------------------------------------------------
    RSA(R) Conference 2012
    Save $700 by Nov 18
    Register now
    http://p.sf.net/sfu/rsa-sfdev2dev1
    _______________________________________________
    Jxplorer-users mailing list
    Jxplorer-users@lists.sourceforge.net 
<mailto:Jxplorer-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/jxplorer-users




--
Dr Christopher Betts
Pegacat Software
Melbourne, Australia
m: 0408 533 456


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1



_______________________________________________
Jxplorer-users mailing list
Jxplorer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-users

--

 Douglas E. Engert  <deeng...@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
Index: build.xml
===================================================================
--- build.xml   (revision 57)
+++ build.xml   (working copy)
@@ -15,7 +15,7 @@
     <!--
       Properties that may not be overriden by developers.
     -->
-    <property name="version_number" value="3.2.2-b1"/> <!-- also update in 
BitRock jxplorer.xml file-->
+    <property name="version_number" value="3.3b1"/> <!-- also update in 
BitRock jxplorer.xml file-->
     <property name="version" value="JXv${version_number}"/>
 
     <property name="classes" value="classes"/>
@@ -50,8 +50,8 @@
             optimize="${compile.optimize}"
             deprecation="off"
             nowarn="off"
-            target="1.4"
-            source="1.4"
+            target="1.5"
+            source="1.5"
             verbose="off">
         </javac>
     </target>
@@ -73,8 +73,9 @@
     </target>
 
     <target name="clean" depends="init" description="Cleans all build 
artifacts">
-       <delete file="jxplorer.jar"/>
+       <delete file="${jars}/jxplorer.jar"/>
        <delete file="${build_number_file}"/>
+       <delete dir="${classes}"/>
         <delete dir="${dist}"/>
         <delete dir="${release}"/>
        <delete dir="${report}"/>
Index: jars/jxplorer.jar
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: jxplorer.bat
===================================================================
--- jxplorer.bat        (revision 57)
+++ jxplorer.bat        (working copy)
@@ -4,4 +4,6 @@
 rem # This version is slightly preferable, as it doesn't override the standard 
java extensions directory
 rem # (note that 'classes' is only used if you are compiling the code 
yourself; otherwise jars/jxplorer.jar is used.)
 
-java -classpath 
.;jars/jxplorer.jar;jars/help.jar;jars/jhall.jar;jars/junit.jar;jars/ldapsec.jar;jars/log4j.jar;jars/dsml/activation.jar;jars/dsml/commons-logging.jar;jars/dsml/dom4j.jar;jars/dsml/dsmlv2.jar;jars/dsml/mail.jar;jars/dsml/saaf-api.jar;jars/dsml/saaj-ri.jar
 com.ca.directory.jxplorer.JXplorer
+IF EXIST %windir%\krb5.ini set 
K5CONF=-Djava.security.krb5.conf=%windir%\krb5.ini
+
+java %K5CONF% -Djxplorer.config=user.home -classpath 
.;jars/jxplorer.jar;jars/help.jar;jars/jhall.jar;jars/junit.jar;jars/ldapsec.jar;jars/log4j.jar;jars/dsml/activation.jar;jars/dsml/commons-logging.jar;jars/dsml/dom4j.jar;jars/dsml/dsmlv2.jar;jars/dsml/mail.jar;jars/dsml/saaf-api.jar;jars/dsml/saaj-ri.jar
 com.ca.directory.jxplorer.JXplorer
Index: jxplorer.sh
===================================================================
--- jxplorer.sh (revision 57)
+++ jxplorer.sh (working copy)
@@ -37,31 +37,41 @@
        fi
 
        cd $OPTJX
-        JAVAV=/opt/jxplorer/jre/bin/java
+        JAVAV=./jre/bin/java
 else
         JAVAV=${JAVA_LOC}
 fi
 
+if [ "x$KRB5CCNAME" = "x" ]; then
+    UID=`id | sed -e "s/^uid=//" -e "s/(.*\$//"`
+    KRB5CCNAME=FILE:/tmp/krb5cc_$UID
+fi
+
 JXOPTS=""
-case $(uname) in
+UNAME=`uname`
+case $UNAME in
    Darwin*)  
    JXOPTS="-Xdock:name=\"JXplorer\" -Dcom.apple.macos.useScreenMenuBar=true" 
    echo "runing OSX verison";;
+   *)
+   JXOPTS="-Duser.krb5ccname=$KRB5CCNAME"
 esac
 
+JXOPTS="$JXOPTS -Djxplorer.config=user.home"
 echo "starting JXplorer..."
 
 FAIL=0
 if [ "$1" = "console" ] ; then
-    echo  "$JAVAV $JXOPTS  -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer"
-    $JAVAV $JXOPTS  -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer
+    shift
+    echo  "$JAVAV $JXOPTS "$@" -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer"
+    $JAVAV $JXOPTS "$@" -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer
 
     if [ "$?" != "0" ]; then
         FAIL=1
     fi
 else
-    echo "Use \"jxstart.sh console\" if you want logging to the console"
-    $JAVAV $JXOPTS -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer  >/dev/null 2>&1
+    echo "Use \"$0 console\" if you want logging to the console"
+    $JAVAV $JXOPTS "$@" -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer  >/dev/null 2>&1
 
     if [ "$?" != "0" ]; then
         FAIL=1
starting JXplorer...
/bin/java -Duser.krb5ccname=FILE:/tmp/krb5cc_134_SpayPI 
-Djxplorer.config=user.home  -cp 
.:jars/jxplorer.jar:jars/help.jar:jars/jhall.jar:jars/junit.jar 
com.ca.directory.jxplorer.JXplorer
Nov 10, 2011 3:09:35 PM com.ca.directory.jxplorer.JXplorer printTime
INFO: main start
TIME: Thu Nov 10 15:09:35 CST 2011  (436)

Nov 10, 2011 3:09:35 PM com.ca.directory.jxplorer.JXplorer checkJavaEnvironment
INFO: running java from: /usr/jdk/instances/jdk1.6.0/jre
Nov 10, 2011 3:09:35 PM com.ca.directory.jxplorer.JXplorer checkJavaEnvironment
INFO: running java version 1.6.0_29
Java Accessibility Bridge for GNOME loaded.

Unable to find theme directory; falling back to: 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/
Nov 10, 2011 3:09:36 PM com.ca.commons.cbutil.CBUtility readPropertyFile
WARNING: No property list:
/afs/anl.gov/usr/ctd/b17783/jxplorer/jxconfig.txt
Nov 10, 2011 3:09:36 PM com.ca.directory.jxplorer.JXConfig setupLogger
INFO: setting up logger
Bad level value for property: com.ca.level
XXX logging initially level WARNING with 0 parents=true
SEARCHING FOR: language/JX_en : null
SEARCHING FOR: language/JX_en.properties : null
SEARCHING FOR: language/JX : null
SEARCHING FOR: language/JX.properties : 
file:/afs/anl.gov/appl/JXplorer-dev/jxplorer/language/JX.properties
java.lang.ClassNotFoundException: Error getting className: 
'com.pegacat.jxworkbench.JXWorkBenchBrowser' : java.util.zip.ZipException: 
File: 'com/pegacat/jxworkbench/JXWorkBenchBrowser.class' not found
        at com.ca.commons.cbutil.CBClassLoader.findClass(CBClassLoader.java:144)
        at com.ca.commons.cbutil.CBClassLoader.findClass(CBClassLoader.java:87)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at com.ca.directory.jxplorer.JXplorer.createNewWindow(JXplorer.java:522)
        at com.ca.directory.jxplorer.JXplorer.JXplorerInit(JXplorer.java:69)
        at com.ca.directory.jxplorer.JXplorer.<init>(JXplorer.java:46)
        at com.ca.directory.jxplorer.JXplorer.main(JXplorer.java:125)
Nov 10, 2011 3:09:36 PM com.ca.directory.jxplorer.JXplorer createNewWindow
WARNING: JXWorkBench not available - loading standard JXplorer version
Nov 10, 2011 3:09:37 PM com.ca.commons.cbutil.CBUtility readPropertyFile
WARNING: No property list:
/afs/anl.gov/usr/ctd/b17783/jxplorer/search_filters.txt
Nov 10, 2011 3:09:37 PM com.ca.commons.cbutil.CBUtility readPropertyFile
WARNING: No property list:
bookmarks.txt
Nov 10, 2011 3:09:37 PM com.ca.commons.cbutil.CBUtility readPropertyFile
WARNING: No property list:
quicksearch.txt
Nov 10, 2011 3:09:37 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
getBaseTemplateDirectory
WARNING: can't find html template directory 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/templates - trying to find /templates 
directory
Nov 10, 2011 3:09:37 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
setupTemplateLists
WARNING: Error initialising HTML Template: java.io.FileNotFoundException: ERROR 
- Cannot find backup /template directory in 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/templates
Nov 10, 2011 3:09:37 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
setStartPage
WARNING: unable to find locale specific start file: 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/htmldocs/start_en.html
Nov 10, 2011 3:09:37 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
setStartPage
WARNING: unable to find locale specific start file: 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/htmldocs/start.html
Nov 10, 2011 3:09:38 PM com.ca.directory.jxplorer.tree.SmartNode init
WARNING: can't find icon directory 
/afs/anl.gov/appl/JXplorer-dev/jxplorer/icons/ trying to find /icons directory
Nov 10, 2011 3:09:38 PM com.ca.directory.jxplorer.tree.SmartNode init
WARNING: Can't find icon directory; check 'dir.icons=' line in dxconfig.txt.
Nov 10, 2011 3:10:05 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
setupTemplates
WARNING: No templates found for objectClasses dcObjectorganizationtop
Nov 10, 2011 3:10:15 PM com.ca.directory.jxplorer.viewer.HTMLTemplateDisplay 
setupTemplates
WARNING: No templates found for objectClasses 
printerAbstractprinterServicesunPrintertop
Last Window Shutting Down
Nov 10, 2011 3:10:26 PM com.ca.directory.jxplorer.JXplorer shutdown
WARNING: shutting down
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Jxplorer-users mailing list
Jxplorer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-users

Reply via email to