2009-06-07 20:59:43 +02:00
|
|
|
<project>
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>mindplot</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Mindmap Draw JavaScript Library</name>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.wisemapping</groupId>
|
|
|
|
<artifactId>wisemapping</artifactId>
|
|
|
|
<relativePath>../pom.xml</relativePath>
|
2014-09-22 03:19:21 +02:00
|
|
|
<version>3.0.5-SNAPSHOT</version>
|
2009-06-07 20:59:43 +02:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.wisemapping</groupId>
|
|
|
|
<artifactId>web2d</artifactId>
|
2012-02-12 06:55:42 +01:00
|
|
|
<version>${com.wisemapping.version}</version>
|
2009-06-07 20:59:43 +02:00
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
2011-04-02 19:22:49 +02:00
|
|
|
<!-- <dependency>
|
2011-03-24 19:00:51 +01:00
|
|
|
<groupId>com.google.jstestdriver</groupId>
|
|
|
|
<artifactId>maven-jstestdriver-plugin</artifactId>
|
|
|
|
<version>1.2.2-SNAPSHOT</version>
|
|
|
|
<scope>test</scope>
|
2011-04-02 19:22:49 +02:00
|
|
|
</dependency> -->
|
2009-06-07 20:59:43 +02:00
|
|
|
</dependencies>
|
|
|
|
|
2011-03-24 19:00:51 +01:00
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>jstd-maven-plugin google code repo</id>
|
|
|
|
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
|
|
|
|
</repository>
|
2011-07-28 02:01:54 +02:00
|
|
|
</repositories>
|
2011-03-24 19:00:51 +01:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2012-08-22 04:05:55 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.gmaven</groupId>
|
|
|
|
<artifactId>gmaven-plugin</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>execute</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<source>
|
|
|
|
def outdir = new File(project.basedir, 'src/main/javascript');
|
|
|
|
if (project.packaging != 'pom')
|
|
|
|
{
|
|
|
|
def dir = new File(project.basedir, 'src/main/resources/');
|
|
|
|
|
|
|
|
dir.eachFile { file ->
|
|
|
|
def matcher = file.name =~ /messages_(.+)\.properties/;
|
|
|
|
def lang = matcher[0][1];
|
|
|
|
def outfile = new File(outdir, "MessageBundle_${lang}.js");
|
|
|
|
println "Converting ${file.name} to ${outfile.name}";
|
|
|
|
|
|
|
|
outfile.withWriter('UTF-8') { out ->
|
2012-08-24 03:07:37 +02:00
|
|
|
out.writeLine "mindplot.Messages.BUNDLES['${lang.toLowerCase()}'] = { ";
|
2012-08-22 04:05:55 +02:00
|
|
|
file.eachLine('UTF-8') { line ->
|
|
|
|
if( line.trim()!="" && line[0]!='#' ) {
|
|
|
|
matcher = line =~ /(.+)=(.+)/;
|
|
|
|
out.writeLine("'${matcher[0][1]}' : \"${matcher[0][2]}\",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.writeLine("'DUMMY' : '' ");
|
|
|
|
out.writeLine "};"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</source>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2009-06-07 20:59:43 +02:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>merge-js-resources</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
2011-10-03 00:16:13 +02:00
|
|
|
<copy toDir="${basedir}/target/classes/">
|
|
|
|
<fileset dir="${basedir}/src/main/javascript/">
|
|
|
|
<include name="libraries/**/*"/>
|
|
|
|
<include name="widget/colorPalette.*"/>
|
2011-10-03 02:05:17 +02:00
|
|
|
<include name="widget/*.css"/>
|
2011-10-03 00:16:13 +02:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2009-06-07 20:59:43 +02:00
|
|
|
</tasks>
|
|
|
|
</configuration>
|
2011-10-03 00:16:13 +02:00
|
|
|
|
2009-06-07 20:59:43 +02:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2012-03-22 06:02:27 +01:00
|
|
|
<groupId>net.alchim31.maven</groupId>
|
2009-06-07 20:59:43 +02:00
|
|
|
<artifactId>yuicompressor-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compress</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2012-03-22 06:02:27 +01:00
|
|
|
<sourceDirectory>${basedir}/src/main/javascript</sourceDirectory>
|
|
|
|
<outputDirectory>${basedir}/target/compress/</outputDirectory>
|
|
|
|
<nosuffix>true</nosuffix>
|
|
|
|
<excludes>
|
|
|
|
<exclude>libraries/**/*.js</exclude>
|
|
|
|
</excludes>
|
2009-06-07 20:59:43 +02:00
|
|
|
<aggregations>
|
|
|
|
<aggregation>
|
2012-03-22 06:02:27 +01:00
|
|
|
<output>${project.build.directory}/classes/mindplot-min.js</output>
|
|
|
|
<inputDir>${basedir}/target/compress</inputDir>
|
|
|
|
<includes>
|
|
|
|
<include>header.js</include>
|
2014-03-15 07:55:42 +01:00
|
|
|
<include>Events.js</include>
|
2014-05-16 05:27:57 +02:00
|
|
|
<include>Options.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>${basedir}/../web2d/target/classes/web2d.svg-min.js</include>
|
2012-07-01 22:21:02 +02:00
|
|
|
<include>Messages.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>TopicEventDispatcher.js</include>
|
|
|
|
<include>model/IMindmap.js</include>
|
|
|
|
<include>model/Mindmap.js</include>
|
|
|
|
<include>model/INodeModel.js</include>
|
|
|
|
<include>model/NodeModel.js</include>
|
|
|
|
<include>model/RelationshipModel.js</include>
|
|
|
|
<include>ActionDispatcher.js</include>
|
|
|
|
<include>StandaloneActionDispatcher.js</include>
|
|
|
|
<include>DesignerModel.js</include>
|
|
|
|
<include>Designer.js</include>
|
|
|
|
<include>ScreenManager.js</include>
|
|
|
|
<include>Workspace.js</include>
|
|
|
|
<include>ShrinkConnector.js</include>
|
2014-03-15 07:56:10 +01:00
|
|
|
<include>Keyboard.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>DesignerKeyboard.js</include>
|
2014-03-09 05:45:53 +01:00
|
|
|
<include>Keyboard.js</include>
|
2012-09-21 14:22:41 +02:00
|
|
|
<include>TopicStyle.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>NodeGraph.js</include>
|
|
|
|
<include>Topic.js</include>
|
|
|
|
<include>CentralTopic.js</include>
|
|
|
|
<include>MainTopic.js</include>
|
|
|
|
<include>DragTopic.js</include>
|
|
|
|
<include>DragManager.js</include>
|
|
|
|
<include>DragPivot.js</include>
|
|
|
|
<include>ConnectionLine.js</include>
|
2012-07-07 02:21:56 +02:00
|
|
|
<include>Relationship.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>DragConnector.js</include>
|
|
|
|
<include>TextEditor.js</include>
|
|
|
|
<include>MultilineTextEditor.js</include>
|
|
|
|
<include>TextEditorFactory.js</include>
|
|
|
|
<include>util/Shape.js</include>
|
|
|
|
<include>util/FadeEffect.js</include>
|
|
|
|
<include>persistence/ModelCodeName.js</include>
|
|
|
|
<include>persistence/XMLSerializer_Pela.js</include>
|
|
|
|
<include>persistence/XMLSerializer_Tango.js</include>
|
|
|
|
<include>persistence/Pela2TangoMigrator.js</include>
|
|
|
|
<include>persistence/XMLSerializer_Beta.js</include>
|
|
|
|
<include>persistence/Beta2PelaMigrator.js</include>
|
|
|
|
<include>persistence/XMLSerializerFactory.js</include>
|
|
|
|
<include>PersistenceManager.js</include>
|
|
|
|
<include>RestPersistenceManager.js</include>
|
|
|
|
<include>LocalStorageManager.js</include>
|
|
|
|
<include>EditorProperties.js</include>
|
|
|
|
<include>IconGroup.js</include>
|
|
|
|
<include>Icon.js</include>
|
|
|
|
<include>LinkIcon.js</include>
|
|
|
|
<include>NoteIcon.js</include>
|
|
|
|
<include>ActionIcon.js</include>
|
|
|
|
<include>ImageIcon.js</include>
|
|
|
|
<include>model/FeatureModel.js</include>
|
|
|
|
<include>model/IconModel.js</include>
|
|
|
|
<include>model/LinkModel.js</include>
|
|
|
|
<include>model/NoteModel.js</include>
|
|
|
|
<include>Command.js</include>
|
|
|
|
<include>DesignerActionRunner.js</include>
|
|
|
|
<include>DesignerUndoManager.js</include>
|
|
|
|
<include>ControlPoint.js</include>
|
|
|
|
<include>EditorOptions.js</include>
|
|
|
|
<include>RelationshipPivot.js</include>
|
|
|
|
<include>TopicFeature.js</include>
|
|
|
|
<include>commands/GenericFunctionCommand.js</include>
|
|
|
|
<include>commands/DeleteCommand.js</include>
|
|
|
|
<include>commands/DragTopicCommand.js</include>
|
|
|
|
<include>commands/AddTopicCommand.js</include>
|
|
|
|
<include>commands/ChangeFeatureToTopicCommand.js</include>
|
|
|
|
<include>commands/RemoveFeatureFromTopicCommand.js</include>
|
|
|
|
<include>commands/AddFeatureToTopicCommand.js</include>
|
|
|
|
<include>commands/AddRelationshipCommand.js</include>
|
|
|
|
<include>commands/MoveControlPointCommand.js</include>
|
2012-10-06 01:05:33 +02:00
|
|
|
<include>widget/ModalDialogNotifier.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>widget/ToolbarNotifier.js</include>
|
|
|
|
<include>widget/ToolbarItem.js</include>
|
|
|
|
<include>widget/ToolbarPaneItem.js</include>
|
|
|
|
<include>widget/NoteEditor.js</include>
|
|
|
|
<include>widget/LinkEditor.js</include>
|
|
|
|
<include>widget/FloatingTip.js</include>
|
|
|
|
<include>widget/LinkIconTooltip.js</include>
|
|
|
|
<include>widget/KeyboardShortcutTooltip.js</include>
|
|
|
|
<include>widget/ColorPalettePanel.js</include>
|
|
|
|
<include>widget/ListToolbarPanel.js</include>
|
|
|
|
<include>widget/FontFamilyPanel.js</include>
|
|
|
|
<include>widget/FontSizePanel.js</include>
|
|
|
|
<include>widget/TopicShapePanel.js</include>
|
|
|
|
<include>widget/IconPanel.js</include>
|
|
|
|
<include>widget/IMenu.js</include>
|
|
|
|
<include>widget/Menu.js</include>
|
|
|
|
<include>TopicFeature.js</include>
|
|
|
|
<include>layout/EventBusDispatcher.js</include>
|
|
|
|
<include>layout/ChangeEvent.js</include>
|
|
|
|
<include>layout/LayoutManager.js</include>
|
|
|
|
<include>layout/Node.js</include>
|
|
|
|
<include>layout/RootedTreeSet.js</include>
|
|
|
|
<include>layout/ChildrenSorterStrategy.js</include>
|
|
|
|
<include>layout/AbstractBasicSorter.js</include>
|
|
|
|
<include>layout/BalancedSorter.js</include>
|
|
|
|
<include>layout/SymmetricSorter.js</include>
|
|
|
|
<include>layout/GridSorter.js</include>
|
|
|
|
<include>layout/OriginalLayout.js</include>
|
|
|
|
<include>layout/EventBus.js</include>
|
2012-08-22 04:05:55 +02:00
|
|
|
<include>MessageBundle_en.js</include>
|
|
|
|
<include>MessageBundle_es.js</include>
|
2012-11-17 03:44:23 +01:00
|
|
|
<include>MessageBundle_de.js</include>
|
2012-08-22 04:05:55 +02:00
|
|
|
<include>MessageBundle_fr.js</include>
|
|
|
|
<include>MessageBundle_pt_BR.js</include>
|
|
|
|
<include>MessageBundle_zh_CN.js</include>
|
|
|
|
<include>MessageBundle_zh_TW.js</include>
|
2013-02-23 00:49:20 +01:00
|
|
|
<include>MessageBundle_ca.js</include>
|
2012-03-22 06:02:27 +01:00
|
|
|
<include>footer.js</include>
|
|
|
|
</includes>
|
2009-06-07 20:59:43 +02:00
|
|
|
</aggregation>
|
|
|
|
</aggregations>
|
2012-03-22 06:02:27 +01:00
|
|
|
<jswarn>false</jswarn>
|
|
|
|
<force>false</force>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
<statistics>false</statistics>
|
2009-06-07 20:59:43 +02:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-03-24 19:00:51 +01:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-04-10 05:54:10 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.searls</groupId>
|
|
|
|
<artifactId>jasmine-maven-plugin</artifactId>
|
2014-09-27 19:35:49 +02:00
|
|
|
<version>1.3.1.5</version>
|
2014-04-10 05:54:10 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2014-09-27 20:58:15 +02:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.htmlunit</groupId>
|
|
|
|
<artifactId>htmlunit</artifactId>
|
|
|
|
<version>2.15</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2014-04-10 05:54:10 +02:00
|
|
|
<configuration>
|
|
|
|
<sourceIncludes>
|
2014-09-27 19:35:49 +02:00
|
|
|
<include>libraries/mootools/mootools-core-1.4.5-full-nocompat-yc.js</include>
|
|
|
|
<include>header.js</include>
|
2014-09-27 20:58:15 +02:00
|
|
|
<include>jquery-1.8.2.js</include>
|
2014-09-27 19:35:49 +02:00
|
|
|
<include>Events.js</include>
|
2014-04-10 05:54:10 +02:00
|
|
|
</sourceIncludes>
|
|
|
|
<specExcludes>
|
|
|
|
<exclude>static/test/*.js</exclude>
|
|
|
|
<exclude>simpleTest.js</exclude>
|
|
|
|
</specExcludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2009-06-07 20:59:43 +02:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|