Index: lams_build/build.xml =================================================================== RCS file: /usr/local/cvsroot/lams_build/build.xml,v diff -u -r1.110 -r1.111 --- lams_build/build.xml 16 Nov 2012 18:55:47 -0000 1.110 +++ lams_build/build.xml 11 Dec 2012 13:15:26 -0000 1.111 @@ -283,9 +283,8 @@ - - - Deploying common Tools + + Deploying Tools @@ -310,22 +309,16 @@ + - - - - Deploying LAMS set of tools - - - + description="Deploys LAMS Tools and special parallel activities." /> + description="Deploys LAMS Tools. For upgrader only!"> Index: lams_central/build.xml =================================================================== RCS file: /usr/local/cvsroot/lams_central/build.xml,v diff -u -r1.59 -r1.60 --- lams_central/build.xml 31 Jul 2012 10:38:05 -0000 1.59 +++ lams_central/build.xml 11 Dec 2012 13:15:25 -0000 1.60 @@ -8,12 +8,8 @@ + - - - - - Copying Pedagogical Planner files @@ -39,15 +35,6 @@ - - - Setting login logo to RAMS - - - - @@ -66,8 +53,6 @@ - - Index: lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java,v diff -u -r1.32 -r1.33 --- lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java 6 Oct 2010 10:09:17 -0000 1.32 +++ lams_learning/src/java/org/lamsfoundation/lams/learning/export/web/action/MainExportServlet.java 11 Dec 2012 13:15:23 -0000 1.33 @@ -163,8 +163,7 @@ } // correct all image links in created htmls. - replaceImageFolderLinks(portfolios.getContentFolderID(), - Configuration.get(ConfigurationKeys.SERVER_URL_CONTEXT_PATH)); + replaceImageFolderLinks(portfolios.getContentFolderID()); // bundle the stylesheet with the package CSSBundler bundler = new CSSBundler(request, cookies, exportTmpDir, exportService.getUserThemes()); @@ -199,10 +198,8 @@ * * @param contentFolderI * 32-character content folder name - * @param lamsOrRams - * "/rams" if we are running rams and "/lams" otherwise */ - private void replaceImageFolderLinks(String contentFolderID, String lamsOrRams) { + private void replaceImageFolderLinks(String contentFolderID) { File tempDir = new File(exportTmpDir); // finds all the html extension files @@ -212,7 +209,7 @@ for (Iterator it = jspFiles.iterator(); it.hasNext();) { Object element = it.next(); MainExportServlet.log.debug("Correcting links in file " + element.toString()); - replaceImageFolderLinks(element.toString(), contentFolderID, lamsOrRams); + replaceImageFolderLinks(element.toString(), contentFolderID); } } @@ -226,13 +223,13 @@ * @param lamsOrRams * "rams/" if we are running rams and "lams/" otherwise */ - private void replaceImageFolderLinks(String filename, String contentFolderID, String lamsOrRams) { + private void replaceImageFolderLinks(String filename, String contentFolderID) { try { // String to find - String ckeditorpath = "/" + lamsOrRams + "/www/secure/" + contentFolderID; + String ckeditorpath = "/lams/www/secure/" + contentFolderID; String ckeditorrecpath = "../" + contentFolderID + "/Recordings"; - String ckeditorsmiley = "/" + lamsOrRams + "/ckeditor/images/smiley"; - String ckeditorvr = "/" + lamsOrRams + "/ckeditor/plugins/videorecorder"; + String ckeditorsmiley = "/lams/ckeditor/images/smiley"; + String ckeditorvr = "/lams/ckeditor/plugins/videorecorder"; // Replacing string String newckeditorpath = "../" + contentFolderID; Index: lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/servlets/ExportServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/servlets/ExportServlet.java,v diff -u -r1.11 -r1.12 --- lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/servlets/ExportServlet.java 6 Oct 2010 10:16:46 -0000 1.11 +++ lams_tool_wiki/src/java/org/lamsfoundation/lams/tool/wiki/web/servlets/ExportServlet.java 11 Dec 2012 13:15:28 -0000 1.12 @@ -184,8 +184,7 @@ // Update image links WikiPageContentDTO contentDTO = wikiPageDTO.getCurrentWikiContentDTO(); - contentDTO.setBody(replaceImageFolderLinks(contentDTO.getBody(), wikiSession.getContentFolderID(), - Configuration.get(ConfigurationKeys.SERVER_URL_CONTEXT_PATH))); + contentDTO.setBody(replaceImageFolderLinks(contentDTO.getBody(), wikiSession.getContentFolderID())); wikiPageDTO.setCurrentWikiContentDTO(contentDTO); wikiPageDTOs.add(wikiPageDTO); @@ -286,8 +285,7 @@ // Update image links WikiPageContentDTO contentDTO = wikiPageDTO.getCurrentWikiContentDTO(); - contentDTO.setBody(replaceImageFolderLinks(contentDTO.getBody(), wikiSession.getContentFolderID(), - Configuration.get(ConfigurationKeys.SERVER_URL_CONTEXT_PATH))); + contentDTO.setBody(replaceImageFolderLinks(contentDTO.getBody(), wikiSession.getContentFolderID())); wikiPageDTO.setCurrentWikiContentDTO(contentDTO); wikiPageDTOs.add(wikiPageDTO); @@ -322,11 +320,11 @@ * @param contentFolderID * @return */ - private String replaceImageFolderLinks(String body, String contentFolderID, String lamsOrRams) { - String ckeditorpath = "/" + lamsOrRams + "/www/secure/" + contentFolderID; + private String replaceImageFolderLinks(String body, String contentFolderID) { + String ckeditorpath = "/lams/www/secure/" + contentFolderID; String newckeditorpath = "./" + contentFolderID; - String ckeditorsmiley = "/" + lamsOrRams + "/ckeditor/images/smiley"; + String ckeditorsmiley = "/lams/ckeditor/images/smiley"; String newckeditorsmiley = "./ckeditor/images/smiley"; // The pattern matches control characters