diff --git a/.gitignore b/.gitignore
index 8bd6b864..9474d0a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@ wisemapping.ipr
wisemapping.iws
wisemapping.iml
wisemapping.ids
-*/wisemapping.log*
+wisemapping.log*
*/.DS_Store
.DS_Store
target
diff --git a/core-js/pom.xml b/core-js/pom.xml
index 0d636336..cfebdf46 100644
--- a/core-js/pom.xml
+++ b/core-js/pom.xml
@@ -33,9 +33,8 @@
- net.sf.alchim
+ net.alchim31.maven
yuicompressor-maven-plugin
- 0.7.1
generate-resources
diff --git a/mindplot/pom.xml b/mindplot/pom.xml
index 329199b0..df9b6104 100644
--- a/mindplot/pom.xml
+++ b/mindplot/pom.xml
@@ -47,157 +47,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -212,9 +61,8 @@
- net.sf.alchim
+ net.alchim31.maven
yuicompressor-maven-plugin
- 0.7.1
generate-resources
@@ -222,16 +70,125 @@
compress
- ${basedir}/target/tmp/
- ${basedir}/target/classes/
-
+ ${basedir}/src/main/javascript
+ ${basedir}/target/compress/
+ true
+
+ libraries/**/*.js
+
-
+
+ ${basedir}/target/compress
+
+ header.js
+ ${basedir}/../web2d/target/classes/web2d.svg-min.js
+ TopicEventDispatcher.js
+ model/IMindmap.js
+ model/Mindmap.js
+ model/INodeModel.js
+ model/NodeModel.js
+ model/RelationshipModel.js
+ ActionDispatcher.js
+ StandaloneActionDispatcher.js
+ DesignerModel.js
+ Designer.js
+ ScreenManager.js
+ Workspace.js
+ ShrinkConnector.js
+ DesignerKeyboard.js
+ NodeGraph.js
+ Topic.js
+ CentralTopic.js
+ MainTopic.js
+ DragTopic.js
+ DragManager.js
+ DragPivot.js
+ ConnectionLine.js
+ RelationshipLine.js
+ DragConnector.js
+ TextEditor.js
+ MultilineTextEditor.js
+ TextEditorFactory.js
+ util/Shape.js
+ util/FadeEffect.js
+ persistence/ModelCodeName.js
+ persistence/XMLSerializer_Pela.js
+ persistence/XMLSerializer_Tango.js
+ persistence/Pela2TangoMigrator.js
+ persistence/XMLSerializer_Beta.js
+ persistence/Beta2PelaMigrator.js
+ persistence/XMLSerializerFactory.js
+ PersistenceManager.js
+ RestPersistenceManager.js
+ LocalStorageManager.js
+ EditorProperties.js
+ IconGroup.js
+ Icon.js
+ LinkIcon.js
+ NoteIcon.js
+ ActionIcon.js
+ ImageIcon.js
+ model/FeatureModel.js
+ model/IconModel.js
+ model/LinkModel.js
+ model/NoteModel.js
+ Command.js
+ DesignerActionRunner.js
+ DesignerUndoManager.js
+ ControlPoint.js
+ EditorOptions.js
+ RelationshipPivot.js
+ TopicFeature.js
+ commands/GenericFunctionCommand.js
+ commands/DeleteCommand.js
+ commands/DragTopicCommand.js
+ commands/AddTopicCommand.js
+ commands/ChangeFeatureToTopicCommand.js
+ commands/RemoveFeatureFromTopicCommand.js
+ commands/AddFeatureToTopicCommand.js
+ commands/AddRelationshipCommand.js
+ commands/MoveControlPointCommand.js
+ collaboration/CollaborationManager.js
+ collaboration/framework/AbstractCollaborativeFramework.js
+ collaboration/framework/AbstractCollaborativeModelFactory.js
+ widget/ToolbarNotifier.js
+ widget/ToolbarItem.js
+ widget/ToolbarPaneItem.js
+ widget/NoteEditor.js
+ widget/LinkEditor.js
+ widget/FloatingTip.js
+ widget/LinkIconTooltip.js
+ widget/KeyboardShortcutTooltip.js
+ widget/ColorPalettePanel.js
+ widget/ListToolbarPanel.js
+ widget/FontFamilyPanel.js
+ widget/FontSizePanel.js
+ widget/TopicShapePanel.js
+ widget/IconPanel.js
+ widget/IMenu.js
+ widget/Menu.js
+ TopicFeature.js
+ layout/EventBusDispatcher.js
+ layout/ChangeEvent.js
+ layout/LayoutManager.js
+ layout/Node.js
+ layout/RootedTreeSet.js
+ layout/ChildrenSorterStrategy.js
+ layout/AbstractBasicSorter.js
+ layout/BalancedSorter.js
+ layout/SymmetricSorter.js
+ layout/GridSorter.js
+ layout/OriginalLayout.js
+ layout/EventBus.js
+ footer.js
+
- true
- true
+ false
+ false
+ UTF-8
+ false
@@ -244,8 +201,6 @@
true
-
-
diff --git a/pom.xml b/pom.xml
index 4569e0e9..62234151 100644
--- a/pom.xml
+++ b/pom.xml
@@ -74,6 +74,11 @@
maven-jaxb2-plugin
0.8.1
+
+ net.alchim31.maven
+ yuicompressor-maven-plugin
+ 1.1
+
diff --git a/web2d/pom.xml b/web2d/pom.xml
index 0ce95272..ec434236 100644
--- a/web2d/pom.xml
+++ b/web2d/pom.xml
@@ -14,7 +14,7 @@
-
+
maven-antrun-plugin
@@ -25,16 +25,15 @@
-
+
- net.sf.alchim
+ net.alchim31.maven
yuicompressor-maven-plugin
- 0.7.1
generate-resources
@@ -42,50 +41,52 @@
compress
+ true
src/main/javascript/
- target/tmp/
+ target/compress
-
+
+ ${basedir}/target/compress
- ${basedir}/target/tmp/header-min.js
- ${basedir}/target/tmp/peer/utils/EventUtils-min.js
- ${basedir}/target/tmp/peer/utils/TransformUtils-min.js
- ${basedir}/target/tmp/peer/svg/ElementPeer-min.js
- ${basedir}/target/tmp/peer/svg/ElipsePeer-min.js
- ${basedir}/target/tmp/peer/svg/Font-min.js
- ${basedir}/target/tmp/peer/svg/ArialFont-min.js
- ${basedir}/target/tmp/peer/svg/PolyLinePeer-min.js
- ${basedir}/target/tmp/peer/svg/CurvedLinePeer-min.js
- ${basedir}/target/tmp/peer/svg/ArrowPeer-min.js
- ${basedir}/target/tmp/peer/svg/TextPeer-min.js
- ${basedir}/target/tmp/peer/svg/WorkspacePeer-min.js
- ${basedir}/target/tmp/peer/svg/GroupPeer-min.js
- ${basedir}/target/tmp/peer/svg/RectPeer-min.js
- ${basedir}/target/tmp/peer/svg/ImagePeer-min.js
- ${basedir}/target/tmp/peer/svg/TimesFont-min.js
- ${basedir}/target/tmp/peer/svg/LinePeer-min.js
- ${basedir}/target/tmp/peer/svg/TahomaFont-min.js
- ${basedir}/target/tmp/peer/svg/VerdanaFont-min.js
- ${basedir}/target/tmp/Element-min.js
- ${basedir}/target/tmp/Elipse-min.js
- ${basedir}/target/tmp/Font-min.js
- ${basedir}/target/tmp/Group-min.js
- ${basedir}/target/tmp/Image-min.js
- ${basedir}/target/tmp/Line-min.js
- ${basedir}/target/tmp/PolyLine-min.js
- ${basedir}/target/tmp/CurvedLine-min.js
- ${basedir}/target/tmp/Arrow-min.js
- ${basedir}/target/tmp/Rect-min.js
- ${basedir}/target/tmp/Text-min.js
- ${basedir}/target/tmp/Toolkit-min.js
- ${basedir}/target/tmp/Workspace-min.js
+ header.js
+ peer/utils/EventUtils.js
+ peer/utils/TransformUtils.js
+ peer/svg/ElementPeer.js
+ peer/svg/ElipsePeer.js
+ peer/svg/Font.js
+ peer/svg/ArialFont.js
+ peer/svg/PolyLinePeer.js
+ peer/svg/CurvedLinePeer.js
+ peer/svg/ArrowPeer.js
+ peer/svg/TextPeer.js
+ peer/svg/WorkspacePeer.js
+ peer/svg/GroupPeer.js
+ peer/svg/RectPeer.js
+ peer/svg/ImagePeer.js
+ peer/svg/TimesFont.js
+ peer/svg/LinePeer.js
+ peer/svg/TahomaFont.js
+ peer/svg/VerdanaFont.js
+ Element.js
+ Elipse.js
+ Font.js
+ Group.js
+ Image.js
+ Line.js
+ PolyLine.js
+ CurvedLine.js
+ Arrow.js
+ Rect.js
+ Text.js
+ Toolkit.js
+ Workspace.js
true
false
- true
+ false
diff --git a/wise-editor/src/main/webapp/js/mindplot-min.js b/wise-editor/src/main/webapp/js/mindplot-min.js
index 9c8cdccf..0f9e470a 100644
--- a/wise-editor/src/main/webapp/js/mindplot-min.js
+++ b/wise-editor/src/main/webapp/js/mindplot-min.js
@@ -13,15 +13,20 @@ function JSPomLoader(pomUrl, callback) {
onSuccess: function(responseText, responseXML) {
// Collect JS Urls ...
- var concatRoot = responseXML.getElementsByTagName('concat');
+ var concatRoot = responseXML.getElementsByTagName('includes');
var fileSetArray = Array.filter(concatRoot[0].childNodes, function(elem) {
return elem.nodeType == Node.ELEMENT_NODE
});
jsUrls = new Array();
Array.each(fileSetArray, function(elem) {
- var jsUrl = elem.getAttribute("dir") + elem.getAttribute("files");
- jsUrls.push(jsUrl.replace("${basedir}", pomUrl.substring(0, pomUrl.lastIndexOf('/'))));
+ var jsUrl = elem.firstChild.nodeValue;
+ if (jsUrl.indexOf("${basedir}") != -1) {
+ jsUrls.push(pomUrl.substring(0, pomUrl.lastIndexOf('/')) + jsUrl.replace("${basedir}",""));
+ } else {
+
+ jsUrls.push(pomUrl.substring(0, pomUrl.lastIndexOf('/')) + "/src/main/javascript/" + jsUrl);
+ }
}
);
diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml
index e413752c..d8c6c918 100644
--- a/wise-webapp/pom.xml
+++ b/wise-webapp/pom.xml
@@ -112,11 +112,6 @@
jaxb-api
2.0
-
- commons-logging
- commons-logging
- 1.0.4
-
javax.xml.bind
jsr173_api