-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/logicaldoc/community
- Loading branch information
Showing
29 changed files
with
359 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<project name="maven-antrun-" default="main"> | ||
<target name="main"> | ||
<taskdef resource="net/sf/antcontrib/antlib.xml" /> | ||
|
||
<delete dir="target/api" quiet="true" /> | ||
<unzip src="target/${project.artifactId}-${project.version}.jar" dest="target/api" /> | ||
<copy todir="target/api"> | ||
<fileset dir="src/main/java"> | ||
<include name="**/*.java" /> | ||
</fileset> | ||
</copy> | ||
<delete> | ||
<fileset dir="target/api" includes="*.html,*.properties" /> | ||
</delete> | ||
<zip destfile="target/${project.artifactId}-${project.version}.jar" basedir="target/api" /> | ||
|
||
<delete dir="target/work" quiet="true" /> | ||
<unzip src="target/${project.artifactId}-${project.version}.${project.packaging}" dest="target/work" /> | ||
<delete dir="target/work/META-INF" /> | ||
<delete dir="target/work/com/i18n" /> | ||
<delete file="target/work/context.properties" /> | ||
<delete file="target/work/dms.log.html" /> | ||
<delete dir="target/plugin" quiet="true" /> | ||
<unzip src="target/${project.artifactId}-${project.version}-plugin.zip" dest="target/plugin" /> | ||
<delete file="target/${project.artifactId}-${project.version}-plugin.zip" /> | ||
<delete file="target/plugin/pom.xml" /> | ||
<copy todir="target/plugin"> | ||
<fileset dir="war"> | ||
<exclude name="**/WEB-INF/**" /> | ||
<exclude name="**/common/**" /> | ||
<exclude name="**/skin/**" /> | ||
<exclude name="**/skin-Tahoe/**" /> | ||
</fileset> | ||
</copy> | ||
|
||
<for list="${smartgwt.skins}" param="skin"> | ||
<sequential> | ||
<for list="login,setup,frontend" param="module"> | ||
<sequential> | ||
<echo>Processing skin @{skin} for module @{module}</echo> | ||
<copy todir="target/plugin/@{module}/sc/skins/@{skin}" overwrite="true"> | ||
<fileset dir="war/skin" includes="**" /> | ||
</copy> | ||
<copy todir="target/plugin/@{module}/sc/skins/@{skin}" overwrite="true" failonerror="false"> | ||
<fileset dir="war/skin-@{skin}" includes="**" /> | ||
</copy> | ||
</sequential> | ||
</for> | ||
</sequential> | ||
</for> | ||
|
||
<!-- Change some styles of the Tahoe skin --> | ||
<replaceregexp file="target/plugin/frontend/sc/skins/Tahoe/skin_styles.css" match=".treeCellOverDark \{\n background: #b6e3ff;\n color: white;" replace=".treeCellOverDark {${line.separator} background: #b6e3ff;${line.separator} color: black;" flags="gm" byline="false" /> | ||
|
||
<!-- Fix the ace distribution --> | ||
<replace file="target/plugin/frontend/ace/ext-language_tools.js" token="this.popup = new AcePopup(document.body || document.documentElement);"> | ||
<replacevalue> | ||
<![CDATA[// this.popup = new AcePopup(document.body || document.documentElement); | ||
let elements = document.querySelectorAll('div'); | ||
let parentElement; | ||
for (let elem of elements) { | ||
if (elem.matches('div[class$="ace_gutter"]')) { | ||
parentElement=elem; | ||
break; | ||
} | ||
} | ||
this.popup = new AcePopup(parentElement); | ||
]]> | ||
</replacevalue> | ||
</replace> | ||
|
||
<delete dir="target/plugin/frontend/ace/" includes="worker*,mode-*,theme-*" excludes="mode-velocity.js,mode-java.js,theme-eclipse.js" /> | ||
<delete dir="target/plugin/frontend/ace/snippets" includes="*.js" excludes="velocity.js" /> | ||
|
||
<!-- Delete all .txt files --> | ||
<delete> | ||
<fileset dir="target/plugin" includes="**/*.txt" /> | ||
</delete> | ||
|
||
<!-- Delete all the sources from the smartgwt jar --> | ||
<delete dir="target/plugin/WEB-INF/lib/smartgwt" failonerror="false" /> | ||
<unzip dest="target/plugin/WEB-INF/lib/smartgwt" src="target/plugin/WEB-INF/lib/smartgwt-${smartgwt.version}.jar" /> | ||
<delete dir="target/plugin/WEB-INF/lib/smartgwt-${smartgwt.version}.jar" /> | ||
<delete> | ||
<fileset dir="target/plugin/WEB-INF/lib/smartgwt" excludes="**/*.class" /> | ||
</delete> | ||
<zip destfile="target/plugin/WEB-INF/lib/smartgwt-${smartgwt.version}.jar" basedir="target/plugin/WEB-INF/lib/smartgwt" /> | ||
<delete dir="target/plugin/WEB-INF/lib/smartgwt" failonerror="false" /> | ||
|
||
<copy file="target/${project.artifactId}-${project.version}.${project.packaging}" tofile="target/plugin/WEB-INF/lib/${project.artifactId}-${project.version}-plugin.${project.packaging}" /> | ||
<copy todir="target/plugin/frontend/sc/skins/standard/images/" file="./war/skin/images/blank.gif" /> | ||
<copy todir="target/plugin/setup/sc/skins/standard/images/" file="./war/skin/images/blank.gif" /> | ||
<delete file="target/${project.artifactId}-${project.version}-plugin2.zip" failonerror="false" /> | ||
<zip destfile="target/${project.artifactId}-${project.version}-plugin2.zip" basedir="target/plugin" /> | ||
<move file="target/${project.artifactId}-${project.version}-plugin2.zip" tofile="target/${project.artifactId}-${project.version}-plugin.zip" /> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
logicaldoc-gui/src/main/java/com/logicaldoc/gui/common/Common.gwt.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.