Ron Parker wrote: > I just downloaded jxplorer from cvs: > > cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jxplorer > login > > cvs -z3 > -d:pserver:[EMAIL PROTECTED]:/cvsroot/jxplorer co > -P /modulename/ > > It downloaded a jxplorer directory which contains this: > > build.properties JXplorer_Administrator_Guide.pdf > build.xml manifest.txt > CVS resources > jars src > JXplorer_Administrator_Guide.doc tcpinterceptor_8000_8080.bat > > Could someone please help me with these two questions: > > 1. Where/How do I apply patch?
See the Unix patch program. It takes a file produced by diff (cvs diff in this case) and figures out from the diff what file needs to be changed. The patch below only changes 2 lines, so you could do it manually. > 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. 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