Configure the Plug-in for Insight UI
The sample Jsmooth project configuration below is the one actually in use for the Insight UI . This is used to generate the Insight UI Executable for Windows platforms.
pom.xml configuration
The section below shows the section used in the pom.xml of the insight ui:
<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>com.mindtree.techworks.insight.releng</groupId>
<artifactId>maven-jsmooth-plugin</artifactId>
<version>0.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jsmoothcompile</goal>
</goals>
</execution>
</executions>
<configuration>
<jsmoothFile>src/assembly/insight.jsmooth</jsmoothFile>
<iconLocation>src/assembly/resources/insight.ico</iconLocation>
<setExeName>true</setExeName>
<includeDependencies>true</includeDependencies>
<dependencyBaseDir>lib</dependencyBaseDir>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
</project>
insight.jsmooth
The insight.jsmooth file used for Insight UI is given below. This format is not directly used by the Plug-in, just parsed and passed on to the JSmooth ExeCompiler.
<jsmoothproject>
<JVMSearchPath>registry</JVMSearchPath>
<JVMSearchPath>javahome</JVMSearchPath>
<JVMSearchPath>jrepath</JVMSearchPath>
<JVMSearchPath>jdkpath</JVMSearchPath>
<JVMSearchPath>exepath</JVMSearchPath>
<JVMSearchPath>jview</JVMSearchPath>
<arguments></arguments>
<embeddedJar>true</embeddedJar>
<executableName>insight.exe</executableName>
<iconLocation>insight.bat</iconLocation>
<initialMemoryHeap>-1</initialMemoryHeap>
<jarLocation>insight-1.5.0-SNAPSHOT.jar</jarLocation>
<javaProperties>
<name>INSIGHT_HOME</name>
<value>${EXECUTABLEPATH}</value>
</javaProperties>
<mainClassName>com.mindtree.techworks.insight.Insight</mainClassName>
<maximumMemoryHeap>134217728</maximumMemoryHeap>
<maximumVersion></maximumVersion>
<minimumVersion>1.4.2</minimumVersion>
<skeletonName>Autodownload Wrapper</skeletonName>
<skeletonProperties>
<key>Message</key>
<value>
Java has not been found on your computer. Do you want to
download it?
</value>
</skeletonProperties>
<skeletonProperties>
<key>DownloadURL</key>
<value>
http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-windows-i586.cab
</value>
</skeletonProperties>
<skeletonProperties>
<key>SingleProcess</key>
<value>1</value>
</skeletonProperties>
<skeletonProperties>
<key>SingleInstance</key>
<value>1</value>
</skeletonProperties>
<skeletonProperties>
<key>JniSmooth</key>
<value>0</value>
</skeletonProperties>
<skeletonProperties>
<key>Debug</key>
<value>0</value>
</skeletonProperties>
</jsmoothproject>
