Ron Parker wrote:
> Douglas E. Engert wrote:
> 
>>> 2. How do I update jxplorer runtime with new patch files?
>>
>> I found that while in the top level directory, run "ant dist".
>> The dist directory will then have the runtime files.
>> Depending on what system you are on it may or may not be present.
>> On Solarais 10 it is in /usr/sfw/bin.  ant came from Apache.
>>
> I assume by distribution you mean jxplorer.jar that I could drop into 
> the jxplorer/jars directory? 

No. I meant after you run  "/usr/sfw/bin/ant dist" (You said you where
on Solaris 10) there will be directory named dist. Copy the whole directory.

Here is a script to copy the $DIST/dist directory to
a new location, and it will change the absolute path names in
thejxplorer.sh and jxmac.sh to point to the new location, $DISTR
(Note the [    ] is a space and a tab.)

#!/bin/sh
DIST=/afs/.anl.gov/appl/JXplorer-dev
DISTR=/afs/anl.gov/appl/jxplorer-3.2

(cd dist; tar cfv - .) | (cd $DIST; tar xfv - )
sed -e "s?^[    ]OPTJX=/.*?     OPTJX=$DISTR/jxplorer?" \
    < ./resources/jxplorer.sh \
    > $DIST/jxplorer/jxplorer.sh
sed -e "s?^[    ]OPTJX=/.*?     OPTJX=$DISTR/jxplorer?" \
         < ./resources/jxmac.sh \
         > $DIST/jxplorer/jxmac.sh

chmod 755 $DIST/jxplorer/jxplorer.sh \
           $DIST/jxplorer/jxmac.sh \
           $DIST/jxplorer/jxplorer.bat

> If so, could you just send me yours with 
> this patch applied? 
> 
> Would appreciate it so much.
> 
>> If you are interested in resources/templates/posixAccount/Main.html
>> and other.html You can create this directory in the cvs before you
>> run ant.
>>
>>
>>> Thanks!
>>>
>>> -ron
>>>
>>> Douglas E. Engert wrote:
>>>
>>>> In order to make the JXplorer easier to use for our account services 
>>>> people,
>>>> to add new posixAcocunt entries, I created 
>>>> templates/posixAccount/Main.html and other.html
>>>>
>>>> The attached patch is against the cvs to allow the HTML viewer to 
>>>> create new entries.
>>>>
>>>> The line in MyHTMLEditorKit.java:
>>>> newEntry.setStatus(oldEntry.getStatus());
>>>>
>>>> will copy the status which is new, if the entry does not exist in 
>>>> ldap or normal
>>>> if the entry already exists. Thus later when the submit is done it 
>>>> will use ldap add
>>>> or ldap modify.
>>>>
>>>> What I have not figured out is how to use the value="xxx" in the
>>>> template to provide a default stating value when creating new entries
>>>> which would be another nice feature.
>>>>
>>>>
>>>> Please consider adding these changes to the next distribution.
>>>>
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> Index: src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java
>>>> ===================================================================
>>>> RCS file: 
>>>> /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java,v
>>>>  
>>>>
>>>> retrieving revision 1.22
>>>> diff -u -r1.22 HTMLTemplateDisplay.java
>>>> --- src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java    
>>>> 18 Aug 2005 04:14:25 -0000    1.22
>>>> +++ src/com/ca/directory/jxplorer/viewer/HTMLTemplateDisplay.java    
>>>> 15 Aug 2007 14:50:34 -0000
>>>> @@ -2517,7 +2517,7 @@
>>>>  
>>>>      public boolean canCreateEntry()
>>>>      {
>>>> -        return false;
>>>> +        return true; //DEE was false;
>>>>      }
>>>>  
>>>>      public void registerComponents(JMenuBar menu, JToolBar buttons, 
>>>> JTree tree, JPopupMenu treeMenu, JFrame jx)
>>>> @@ -2559,4 +2559,4 @@
>>>>      }
>>>>  
>>>>  
>>>> -}
>>>> \ No newline at end of file
>>>> +}
>>>> Index: src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java
>>>> ===================================================================
>>>> RCS file: 
>>>> /cvsroot/jxplorer/javasrc/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java,v
>>>>  
>>>>
>>>> retrieving revision 1.8
>>>> diff -u -r1.8 MyHTMLEditorKit.java
>>>> --- src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java    6 
>>>> Dec 2005 06:27:40 -0000    1.8
>>>> +++ src/com/ca/directory/jxplorer/viewer/MyHTMLEditorKit.java    15 
>>>> Aug 2007 14:50:34 -0000
>>>> @@ -62,6 +62,8 @@
>>>>               DXEntry newEntry = parseData(data, 
>>>> oldEntry);            //TE: make an entry with any changes that the 
>>>> user may have done (this entry doesn't have a dn yet).
>>>>  
>>>> +        newEntry.setStatus(oldEntry.getStatus());  // new or normal 
>>>> DEE
>>>> +
>>>>          // Must remove the Submit attr so that it doesn't get added...
>>>>          newEntry.remove(SUBMIT);
>>>>  
>>>> @@ -322,4 +324,4 @@
>>>>          }
>>>>      }
>>>>    -}
>>>> \ No newline at end of file
>>>> +}
>>>>  
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> <Main.html>    
>>>>
>>>>
>>>>   posixAccount
>>>>
>>>> description::    
>>>>
>>>>     
>>>>  
>>>>
>>>>
>>>>
>>>> __________ NOD32 2473 (20070821) Information __________
>>>>
>>>> This message was checked by NOD32 antivirus system.
>>>> http://www.eset.com
>>>>
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>>     <other.html>
>>>>
>>>>
>>>>   posixAccount
>>>>
>>>> cn: and uid: are normally the same.
>>>> password: is normally {crypt}NP and will be displayed as e2NyeXB0fU5Q
>>>> to lock an account use {crypt}*LK* displayed as e2NyeXB0fSpMSyo=
>>>>
>>>> cn:    
>>>> uid:    
>>>> uidNumber:    
>>>> User Password:    
>>>> gidnumber:    
>>>> gecos:    
>>>> loginShell:    
>>>> homeDirectory:    
>>>>
>>>>     
>>>>
>>>>
>>>> __________ NOD32 2473 (20070821) Information __________
>>>>
>>>> This message was checked by NOD32 antivirus system.
>>>> http://www.eset.com
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> ------------------------------------------------------------------------- 
>>>>
>>>> This SF.net email is sponsored by: Splunk Inc.
>>>> Still grepping through log files to find problems?  Stop.
>>>> Now Search log events and configuration files using AJAX and a browser.
>>>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>>>>
>>>>
>>>> __________ NOD32 2473 (20070821) Information __________
>>>>
>>>> This message was checked by NOD32 antivirus system.
>>>> http://www.eset.com
>>>>   
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> _______________________________________________
>>>> Jxplorer-users mailing list
>>>> Jxplorer-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jxplorer-users
>>>>
>>>>
>>>>
>>>> __________ NOD32 2473 (20070821) Information __________
>>>>
>>>> This message was checked by NOD32 antivirus system.
>>>> http://www.eset.com
>>>>   
>>>
>>>
>>> -- 
>>> Ron Parker
>>> Software Creations               http://www.scbbs.com
>>> Self-Administration Web Site     http://saw.scbbs.com
>>> SDSS Subscription Mgmt Service   http://sdss.scbbs.com
>>> Central Ave Dance Ensemble       http://www.centralavedance.com
>>> R & B Salsa                      http://www.randbsalsa.com
>>>
> 
> 

-- 

  Douglas E. Engert  <[EMAIL PROTECTED]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jxplorer-users mailing list
Jxplorer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-users

Reply via email to