Commits

Brice Dutheil committed d196eee Merge

Merging multiplatform build (osx and win32) & packaging changes

Comments (0)

Files changed (8)

 syntax: glob
 out
+deploy
 jd-intellij.iws
-jd-intellij.zip
+jd-intellij.zip
     <name>Java Decompiler IntelliJ Plugin</name>
     <description>IntelliJ plugin to JD-Core. See http://java.decompiler.free.fr/</description>
     <id>jd-intellij</id>
-    <version>1.0</version>
+    <version>@CURRENT_VERSION@</version>
     <vendor>Brice Dutheil</vendor>
     <idea-version since-build="107.587" />
 
     <change-notes><![CDATA[
-            <b>Version O.1</b>
+            <p>JD-IntelliJ is a plug-in for the IntelliJ IDEA platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.</p>
+
+            <p>JD-IntelliJ is free for non-commercial use. This means that JD-IntelliJ shall not be included or embedded into commercial software products. Nevertheless, this project may be freely used for personal needs in a commercial or non-commercial environments.</p>
+            <b>Version @CURRENT_VERSION@</b>
             <ul>
                 <li>First release. Using JD-Core 0.6.1</li>
             </ul>
+            <p>Website : <a href="http://java.decompiler.free.fr/?q=jdintellij">http://java.decompiler.free.fr/?q=jdintellij</a></p>
+            <p>Sources : <a href="https://bitbucket.org/bric3/jd-intellij">https://bitbucket.org/bric3/jd-intellij</a></p>
     ]]></change-notes>
 
     <application-components>

jd-intellij-win32.properties

+# maven repositories
 path.variable.gradle_repository=/Users/brice/.m2/repository\
 path.variable.maven_repository=C\:\\Users\\Brice\\.m2\\repository
+
+
+# IntelliJ 11 path
 idea.home=C\:/Program Files/JetBrains/IntelliJ IDEA 11.1.1
-jdk.home=${idea.home}/../../Java/jdk1.6.0_30
+jdk.home=${idea.home}/../../Java/jdk1.6.0_30
+
+
+# Version of the plugin
+current.version=0.1
+
+
+# Base URL where the plugin ZIP file will be deployed
+plugin.deploy.url=http://arkey.fr/jd-intellij

jd-intellij-win32.xml

 <?xml version="1.0" encoding="UTF-8"?>
 <project name="jd-intellij (win32 paths)" default="make">
-  
-  
-  <property file="jd-intellij-win32.properties"/>
-  <!-- Uncomment the following property if no tests compilation is needed -->
-  <!-- 
-  <property name="skip.tests" value="true"/>
-   -->
-  
-  <!-- Compiler options -->
-  
-  <property name="compiler.debug" value="on"/>
-  <property name="compiler.generate.no.warnings" value="off"/>
-  <property name="compiler.args" value=""/>
-  <property name="compiler.max.memory" value="128m"/>
-  <patternset id="ignored.files">
-    <exclude name="**/CVS/**"/>
-    <exclude name="**/SCCS/**"/>
-    <exclude name="**/RCS/**"/>
-    <exclude name="**/rcs/**"/>
-    <exclude name="**/.DS_Store/**"/>
-    <exclude name="**/.svn/**"/>
-    <exclude name="**/.pyc/**"/>
-    <exclude name="**/.pyo/**"/>
-    <exclude name="**/*.pyc/**"/>
-    <exclude name="**/*.pyo/**"/>
-    <exclude name="**/.git/**"/>
-    <exclude name="**/*.hprof/**"/>
-    <exclude name="**/_svn/**"/>
-    <exclude name="**/.hg/**"/>
-    <exclude name="**/*.lib/**"/>
-    <exclude name="**/*~/**"/>
-    <exclude name="**/__pycache__/**"/>
-    <exclude name="**/.bundle/**"/>
-    <exclude name="**/*.rbc/**"/>
-    <exclude name="**/*.orig/**"/>
-  </patternset>
-  <patternset id="library.patterns">
-    <include name="*.war"/>
-    <include name="*.ear"/>
-    <include name="*.apk"/>
-    <include name="*.zip"/>
-    <include name="*.swc"/>
-    <include name="*.ane"/>
-    <include name="*.egg"/>
-    <include name="*.jar"/>
-  </patternset>
-  <patternset id="compiler.resources">
-    <include name="**/?*.properties"/>
-    <include name="**/?*.xml"/>
-    <include name="**/?*.gif"/>
-    <include name="**/?*.png"/>
-    <include name="**/?*.jpeg"/>
-    <include name="**/?*.jpg"/>
-    <include name="**/?*.html"/>
-    <include name="**/?*.dtd"/>
-    <include name="**/?*.tld"/>
-    <include name="**/?*.ftl"/>
-    <!--<include name="**/?*.so"/>-->
-    <!--<include name="**/?*.dll"/>-->
-    <!--<include name="**/?*.jnilib"/>-->
-  </patternset>
-  
-  <!-- JDK definitions -->
-  
-  <property name="jdk.bin" value="${jdk.home}/bin"/>
 
-  <path id="idea.classpath">
-    <fileset dir="${idea.home}">
-      <include name="${jdk.home}/jre/lib/charsets.jar"/>
-      <include name="${jdk.home}/jre/lib/deploy.jar"/>
-      <include name="${jdk.home}/jre/lib/javaws.jar"/>
-      <include name="${jdk.home}/jre/lib/jce.jar"/>
-      <include name="${jdk.home}/jre/lib/jsse.jar"/>
-      <include name="${jdk.home}/jre/lib/management-agent.jar"/>
-      <include name="${jdk.home}/jre/lib/plugin.jar"/>
-      <include name="${jdk.home}/jre/lib/resources.jar"/>
-      <include name="${jdk.home}/jre/lib/rt.jar"/>
-      <include name="${jdk.home}/jre/lib/ext/dnsns.jar"/>
-      <include name="${jdk.home}/jre/lib/ext/localedata.jar"/>
-      <include name="${jdk.home}/jre/lib/ext/sunjce_provider.jar"/>
-      <include name="${jdk.home}/jre/lib/ext/sunmscapi.jar"/>
-      <include name="${jdk.home}/jre/lib/ext/sunpkcs11.jar"/>
-      <include name="lib/alloy.jar"/>
-      <include name="lib/annotations.jar"/>
-      <include name="lib/asm-commons.jar"/>
-      <include name="lib/asm-tree-3.0.jar"/>
-      <include name="lib/asm.jar"/>
-      <include name="lib/automaton.jar"/>
-      <include name="lib/batik.jar"/>
-      <include name="lib/boot.jar"/>
-      <include name="lib/bootstrap.jar"/>
-      <include name="lib/cglib-2.2.2.jar"/>
-      <include name="lib/cli-10.jar"/>
-      <include name="lib/commons-codec-1.3.jar"/>
-      <include name="lib/commons-collections.jar"/>
-      <include name="lib/commons-httpclient-3.1-patched.jar"/>
-      <include name="lib/commons-lang-2.4.jar"/>
-      <include name="lib/commons-logging-1.1.1.jar"/>
-      <include name="lib/commons-net-2.0-patched.jar"/>
-      <include name="lib/dtdparser113.jar"/>
-      <include name="lib/extensions.jar"/>
-      <include name="lib/forms_rt.jar"/>
-      <include name="lib/freemarker.jar"/>
-      <include name="lib/groovy-all-1.8.5.jar"/>
-      <include name="lib/gson-2.0.jar"/>
-      <include name="lib/guava-11.0.1.jar"/>
-      <include name="lib/icons.jar"/>
-      <include name="lib/idea-jsp-openapi.jar"/>
-      <include name="lib/idea.jar"/>
-      <include name="lib/idea_rt.jar"/>
-      <include name="lib/isorelax.jar"/>
-      <include name="lib/jasper21_rt.jar"/>
-      <include name="lib/jasper2_rt.jar"/>
-      <include name="lib/javac2.jar"/>
-      <include name="lib/jaxen-1.1.3.jar"/>
-      <include name="lib/jcip-annotations.jar"/>
-      <include name="lib/jdkAnnotations.jar"/>
-      <include name="lib/jdom.jar"/>
-      <include name="lib/jgoodies-common-1.2.1.jar"/>
-      <include name="lib/jgoodies-forms.jar"/>
-      <include name="lib/jgoodies-looks-2.4.2.jar"/>
-      <include name="lib/jh.jar"/>
-      <include name="lib/jing.jar"/>
-      <include name="lib/jna-utils.jar"/>
-      <include name="lib/jna.jar"/>
-      <include name="lib/jps-server.jar"/>
-      <include name="lib/jsp-api.jar"/>
-      <include name="lib/jsr173_1.0_api.jar"/>
-      <include name="lib/junit-4.10.jar"/>
-      <include name="lib/junit.jar"/>
-      <include name="lib/log4j.jar"/>
-      <include name="lib/microba.jar"/>
-      <include name="lib/nanoxml-2.2.3.jar"/>
-      <include name="lib/nekohtml-1.9.14.jar"/>
-      <include name="lib/netty-3.3.1.Final.jar"/>
-      <include name="lib/openapi.jar"/>
-      <include name="lib/optimizedFileManager.jar"/>
-      <include name="lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
-      <include name="lib/oromatcher.jar"/>
-      <include name="lib/picocontainer.jar"/>
-      <include name="lib/protobuf-2.4.1.jar"/>
-      <include name="lib/resolver.jar"/>
-      <include name="lib/resources.jar"/>
-      <include name="lib/resources_en.jar"/>
-      <include name="lib/rhino-js-1_7R3.jar"/>
-      <include name="lib/rngom-20051226-patched.jar"/>
-      <include name="lib/sanselan-0.98-snapshot.jar"/>
-      <include name="lib/serviceMessages.jar"/>
-      <include name="lib/servlet-api.jar"/>
-      <include name="lib/swingx-core-1.6.2.jar"/>
-      <include name="lib/trang-core.jar"/>
-      <include name="lib/trove4j.jar"/>
-      <include name="lib/trove4j_src.jar"/>
-      <include name="lib/util.jar"/>
-      <include name="lib/velocity.jar"/>
-      <include name="lib/winp-1.16-patched.jar"/>
-      <include name="lib/xbean.jar"/>
-      <include name="lib/xerces.jar"/>
-      <include name="lib/xml-apis.jar"/>
-      <include name="lib/xmlrpc-2.0.jar"/>
-      <include name="lib/xpp3-1.1.4-min.jar"/>
-      <include name="lib/xstream.jar"/>
-      <include name="lib/yjp-controller-api-redist.jar"/>
-      <include name="plugins/JavaEE/lib/javaee-openapi.jar"/>
-      <include name="plugins/JavaEE/lib/jpa-console.jar"/>
-      <include name="plugins/JavaEE/lib/resources_en.jar"/>
-      <include name="plugins/JSF/lib/jsf-support.jar"/>
-      <include name="plugins/JSF/lib/resources_en.jar"/>
-      <include name="plugins/PersistenceSupport/lib/persistence-openapi.jar"/>
-      <include name="plugins/PersistenceSupport/lib/resources_en.jar"/>
-      <include name="plugins/DatabaseSupport/lib/database-openapi.jar"/>
-      <include name="plugins/DatabaseSupport/lib/jdbc-console.jar"/>
-      <include name="plugins/DatabaseSupport/lib/resources_en.jar"/>
-      <include name="plugins/CSS/lib/css-openapi.jar"/>
-      <include name="plugins/CSS/lib/resources_en.jar"/>
-    </fileset>
-  </path>
-  
-  <property name="project.jdk.home" value="${idea.home}"/>
-  <property name="project.jdk.bin" value="${jdk.bin}"/>
-  <property name="project.jdk.classpath" value="idea.classpath"/>
 
+    <property file="jd-intellij-win32.properties"/>
+    <!-- Uncomment the following property if no tests compilation is needed -->
+    <!--
+    <property name="skip.tests" value="true"/>
+     -->
 
-  <!-- Global Libraries -->
+    <!-- Compiler options -->
 
+    <property name="compiler.debug" value="on"/>
+    <property name="compiler.generate.no.warnings" value="off"/>
+    <property name="compiler.args" value=""/>
+    <property name="compiler.max.memory" value="128m"/>
+    <patternset id="ignored.files">
+        <exclude name="**/CVS/**"/>
+        <exclude name="**/SCCS/**"/>
+        <exclude name="**/RCS/**"/>
+        <exclude name="**/rcs/**"/>
+        <exclude name="**/.DS_Store/**"/>
+        <exclude name="**/.svn/**"/>
+        <exclude name="**/.pyc/**"/>
+        <exclude name="**/.pyo/**"/>
+        <exclude name="**/*.pyc/**"/>
+        <exclude name="**/*.pyo/**"/>
+        <exclude name="**/.git/**"/>
+        <exclude name="**/*.hprof/**"/>
+        <exclude name="**/_svn/**"/>
+        <exclude name="**/.hg/**"/>
+        <exclude name="**/*.lib/**"/>
+        <exclude name="**/*~/**"/>
+        <exclude name="**/__pycache__/**"/>
+        <exclude name="**/.bundle/**"/>
+        <exclude name="**/*.rbc/**"/>
+        <exclude name="**/*.orig/**"/>
+    </patternset>
+    <patternset id="library.patterns">
+        <include name="*.war"/>
+        <include name="*.ear"/>
+        <include name="*.apk"/>
+        <include name="*.zip"/>
+        <include name="*.swc"/>
+        <include name="*.ane"/>
+        <include name="*.egg"/>
+        <include name="*.jar"/>
+    </patternset>
+    <patternset id="compiler.resources">
+        <include name="**/?*.properties"/>
+        <include name="**/?*.xml"/>
+        <include name="**/?*.gif"/>
+        <include name="**/?*.png"/>
+        <include name="**/?*.jpeg"/>
+        <include name="**/?*.jpg"/>
+        <include name="**/?*.html"/>
+        <include name="**/?*.dtd"/>
+        <include name="**/?*.tld"/>
+        <include name="**/?*.ftl"/>
+        <!--<include name="**/?*.so"/>-->
+        <!--<include name="**/?*.dll"/>-->
+        <!--<include name="**/?*.jnilib"/>-->
+    </patternset>
 
-  <!-- Application Server Libraries -->
-  <!-- Register Custom Compiler Taskdefs -->
-  <property name="javac2.home" value="${idea.home}/lib"/>
-  <path id="javac2.classpath">
-    <pathelement location="${javac2.home}/javac2.jar"/>
-    <pathelement location="${javac2.home}/jdom.jar"/>
-    <pathelement location="${javac2.home}/asm.jar"/>
-    <pathelement location="${javac2.home}/asm-commons.jar"/>
-    <pathelement location="${javac2.home}/jgoodies-forms.jar"/>
-  </path>
-  <target name="register.custom.compilers">
-    <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
-    <taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
-  </target>
-  
-  <!-- Modules -->
-  
-  <import file="${basedir}/module_jd-intellij.xml"/>
-  
-  <target name="init" description="Build initialization">
-    <!-- Perform any build initialization in this target -->
-  </target>
-  
-  <target name="clean" depends="clean.module.jd-intellij" description="cleanup all"/>
-  
-  <target name="make" depends="init, clean, plugin.build.jar.jd-intellij" description="build all modules"/>
+    <!-- JDK definitions -->
+
+    <property name="jdk.bin" value="${jdk.home}/bin"/>
+
+    <path id="idea.classpath">
+        <fileset dir="${idea.home}">
+            <include name="${jdk.home}/jre/lib/charsets.jar"/>
+            <include name="${jdk.home}/jre/lib/deploy.jar"/>
+            <include name="${jdk.home}/jre/lib/javaws.jar"/>
+            <include name="${jdk.home}/jre/lib/jce.jar"/>
+            <include name="${jdk.home}/jre/lib/jsse.jar"/>
+            <include name="${jdk.home}/jre/lib/management-agent.jar"/>
+            <include name="${jdk.home}/jre/lib/plugin.jar"/>
+            <include name="${jdk.home}/jre/lib/resources.jar"/>
+            <include name="${jdk.home}/jre/lib/rt.jar"/>
+            <include name="${jdk.home}/jre/lib/ext/dnsns.jar"/>
+            <include name="${jdk.home}/jre/lib/ext/localedata.jar"/>
+            <include name="${jdk.home}/jre/lib/ext/sunjce_provider.jar"/>
+            <include name="${jdk.home}/jre/lib/ext/sunmscapi.jar"/>
+            <include name="${jdk.home}/jre/lib/ext/sunpkcs11.jar"/>
+            <include name="lib/alloy.jar"/>
+            <include name="lib/annotations.jar"/>
+            <include name="lib/asm-commons.jar"/>
+            <include name="lib/asm-tree-3.0.jar"/>
+            <include name="lib/asm.jar"/>
+            <include name="lib/automaton.jar"/>
+            <include name="lib/batik.jar"/>
+            <include name="lib/boot.jar"/>
+            <include name="lib/bootstrap.jar"/>
+            <include name="lib/cglib-2.2.2.jar"/>
+            <include name="lib/cli-10.jar"/>
+            <include name="lib/commons-codec-1.3.jar"/>
+            <include name="lib/commons-collections.jar"/>
+            <include name="lib/commons-httpclient-3.1-patched.jar"/>
+            <include name="lib/commons-lang-2.4.jar"/>
+            <include name="lib/commons-logging-1.1.1.jar"/>
+            <include name="lib/commons-net-2.0-patched.jar"/>
+            <include name="lib/dtdparser113.jar"/>
+            <include name="lib/extensions.jar"/>
+            <include name="lib/forms_rt.jar"/>
+            <include name="lib/freemarker.jar"/>
+            <include name="lib/groovy-all-1.8.5.jar"/>
+            <include name="lib/gson-2.0.jar"/>
+            <include name="lib/guava-11.0.1.jar"/>
+            <include name="lib/icons.jar"/>
+            <include name="lib/idea-jsp-openapi.jar"/>
+            <include name="lib/idea.jar"/>
+            <include name="lib/idea_rt.jar"/>
+            <include name="lib/isorelax.jar"/>
+            <include name="lib/jasper21_rt.jar"/>
+            <include name="lib/jasper2_rt.jar"/>
+            <include name="lib/javac2.jar"/>
+            <include name="lib/jaxen-1.1.3.jar"/>
+            <include name="lib/jcip-annotations.jar"/>
+            <include name="lib/jdkAnnotations.jar"/>
+            <include name="lib/jdom.jar"/>
+            <include name="lib/jgoodies-common-1.2.1.jar"/>
+            <include name="lib/jgoodies-forms.jar"/>
+            <include name="lib/jgoodies-looks-2.4.2.jar"/>
+            <include name="lib/jh.jar"/>
+            <include name="lib/jing.jar"/>
+            <include name="lib/jna-utils.jar"/>
+            <include name="lib/jna.jar"/>
+            <include name="lib/jps-server.jar"/>
+            <include name="lib/jsp-api.jar"/>
+            <include name="lib/jsr173_1.0_api.jar"/>
+            <include name="lib/junit-4.10.jar"/>
+            <include name="lib/junit.jar"/>
+            <include name="lib/log4j.jar"/>
+            <include name="lib/microba.jar"/>
+            <include name="lib/nanoxml-2.2.3.jar"/>
+            <include name="lib/nekohtml-1.9.14.jar"/>
+            <include name="lib/netty-3.3.1.Final.jar"/>
+            <include name="lib/openapi.jar"/>
+            <include name="lib/optimizedFileManager.jar"/>
+            <include name="lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
+            <include name="lib/oromatcher.jar"/>
+            <include name="lib/picocontainer.jar"/>
+            <include name="lib/protobuf-2.4.1.jar"/>
+            <include name="lib/quaqua.jar"/>
+            <include name="lib/resolver.jar"/>
+            <include name="lib/resources.jar"/>
+            <include name="lib/resources_en.jar"/>
+            <include name="lib/rhino-js-1_7R3.jar"/>
+            <include name="lib/rngom-20051226-patched.jar"/>
+            <include name="lib/sanselan-0.98-snapshot.jar"/>
+            <include name="lib/serviceMessages.jar"/>
+            <include name="lib/servlet-api.jar"/>
+            <include name="lib/swingx-core-1.6.2.jar"/>
+            <include name="lib/trang-core.jar"/>
+            <include name="lib/trove4j.jar"/>
+            <include name="lib/trove4j_src.jar"/>
+            <include name="lib/util.jar"/>
+            <include name="lib/velocity.jar"/>
+            <include name="lib/winp-1.16-patched.jar"/>
+            <include name="lib/xbean.jar"/>
+            <include name="lib/xerces.jar"/>
+            <include name="lib/xml-apis.jar"/>
+            <include name="lib/xmlrpc-2.0.jar"/>
+            <include name="lib/xpp3-1.1.4-min.jar"/>
+            <include name="lib/xstream.jar"/>
+            <include name="lib/yjp-controller-api-redist.jar"/>
+            <include name="plugins/JavaEE/lib/javaee-openapi.jar"/>
+            <include name="plugins/JavaEE/lib/jpa-console.jar"/>
+            <include name="plugins/JavaEE/lib/resources_en.jar"/>
+            <include name="plugins/JSF/lib/jsf-support.jar"/>
+            <include name="plugins/JSF/lib/resources_en.jar"/>
+            <include name="plugins/PersistenceSupport/lib/persistence-openapi.jar"/>
+            <include name="plugins/PersistenceSupport/lib/resources_en.jar"/>
+            <include name="plugins/DatabaseSupport/lib/database-openapi.jar"/>
+            <include name="plugins/DatabaseSupport/lib/jdbc-console.jar"/>
+            <include name="plugins/DatabaseSupport/lib/resources_en.jar"/>
+            <include name="plugins/CSS/lib/css-openapi.jar"/>
+            <include name="plugins/CSS/lib/resources_en.jar"/>
+        </fileset>
+    </path>
+
+    <property name="project.jdk.home" value="${idea.home}"/>
+    <property name="project.jdk.bin" value="${jdk.bin}"/>
+    <property name="project.jdk.classpath" value="idea.classpath"/>
+
+
+    <!-- Global Libraries -->
+
+
+    <!-- Application Server Libraries -->
+    <!-- Register Custom Compiler Taskdefs -->
+    <property name="javac2.home" value="${idea.home}/lib"/>
+    <path id="javac2.classpath">
+        <pathelement location="${javac2.home}/javac2.jar"/>
+        <pathelement location="${javac2.home}/jdom.jar"/>
+        <pathelement location="${javac2.home}/asm.jar"/>
+        <pathelement location="${javac2.home}/asm-commons.jar"/>
+        <pathelement location="${javac2.home}/jgoodies-forms.jar"/>
+    </path>
+
+    <target name="register.custom.compilers">
+        <taskdef name="javac2"
+                 classname="com.intellij.ant.Javac2"
+                 classpathref="javac2.classpath"
+                />
+        <taskdef name="instrumentIdeaExtensions"
+                 classname="com.intellij.ant.InstrumentIdeaExtensions"
+                 classpathref="javac2.classpath"
+                />
+    </target>
+
+    <!-- Modules -->
+
+    <import file="${basedir}/module_jd-intellij.xml"/>
+
+    <target name="init" description="Build initialization">
+        <!-- Perform any build initialization in this target -->
+    </target>
+
+    <target name="clean" depends="clean.module.jd-intellij" description="cleanup all"/>
+
+    <target name="make" depends="init, clean, plugin.build.deploy.jd-intellij" description="build all modules"/>
 </project>
     </buildFile>
   </component>
   <component name="CompilerConfiguration">
-    <option name="DEFAULT_COMPILER" value="compAPI" />
+    <option name="DEFAULT_COMPILER" value="Javac" />
     <resourceExtensions />
     <wildcardResourcePatterns>
       <entry name="?*.properties" />
       <entry name="?*.dll" />
       <entry name="?*.jnilib" />
     </wildcardResourcePatterns>
-    <annotationProcessing enabled="false" useClasspath="true" />
+    <annotationProcessing>
+      <profile default="true" name="Default" enabled="false">
+        <processorPath useClasspath="true" />
+      </profile>
+    </annotationProcessing>
   </component>
   <component name="CopyrightManager" default="">
     <module2copyright />
   <component name="DependencyValidationManager">
     <option name="SKIP_IMPORT_STATEMENTS" value="false" />
   </component>
+  <component name="EclipseCodeFormatter">
+    <option name="defaultSettings" value="true" />
+    <option name="id" value="1346765537165" />
+    <option name="name" value="default" />
+  </component>
   <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" defaultCharsetForPropertiesFiles="UTF-8" />
   <component name="EntryPointsManager">
     <entry_points version="2.0" />
   </component>
+  <component name="GradleSettings">
+    <option name="gradleHome" value="C:/dev/gradle-1.0" />
+  </component>
   <component name="GradleUISettings2">
     <setting name="root" />
   </component>

jd-intellij.properties

+# maven repositories
 path.variable.gradle_repository=/Users/brice/.m2/repository
 path.variable.maven_repository=/Users/brice/.m2/repository
+
+
+# IntelliJ 11 path
 idea.home=/Applications/IntelliJ IDEA 11.app
-jdk.home=${idea.home}/../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk
+jdk.home=${idea.home}/../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk
+
+
+# Version of the plugin
+current.version=0.1
+
+
+# Base URL where the plugin ZIP file will be deployed
+plugin.deploy.url=http://arkey.fr/jd-intellij
 <?xml version="1.0" encoding="UTF-8"?>
 <project name="jd-intellij (osx paths)" default="make">
-  
-  
-  <property file="jd-intellij.properties"/>
-  <!-- Uncomment the following property if no tests compilation is needed -->
-  <!-- 
-  <property name="skip.tests" value="true"/>
-   -->
-  
-  <!-- Compiler options -->
-  
-  <property name="compiler.debug" value="on"/>
-  <property name="compiler.generate.no.warnings" value="off"/>
-  <property name="compiler.args" value=""/>
-  <property name="compiler.max.memory" value="128m"/>
-  <patternset id="ignored.files">
-    <exclude name="**/CVS/**"/>
-    <exclude name="**/SCCS/**"/>
-    <exclude name="**/RCS/**"/>
-    <exclude name="**/rcs/**"/>
-    <exclude name="**/.DS_Store/**"/>
-    <exclude name="**/.svn/**"/>
-    <exclude name="**/.pyc/**"/>
-    <exclude name="**/.pyo/**"/>
-    <exclude name="**/*.pyc/**"/>
-    <exclude name="**/*.pyo/**"/>
-    <exclude name="**/.git/**"/>
-    <exclude name="**/*.hprof/**"/>
-    <exclude name="**/_svn/**"/>
-    <exclude name="**/.hg/**"/>
-    <exclude name="**/*.lib/**"/>
-    <exclude name="**/*~/**"/>
-    <exclude name="**/__pycache__/**"/>
-    <exclude name="**/.bundle/**"/>
-    <exclude name="**/*.rbc/**"/>
-    <exclude name="**/*.orig/**"/>
-  </patternset>
-  <patternset id="library.patterns">
-    <include name="*.war"/>
-    <include name="*.ear"/>
-    <include name="*.apk"/>
-    <include name="*.zip"/>
-    <include name="*.swc"/>
-    <include name="*.ane"/>
-    <include name="*.egg"/>
-    <include name="*.jar"/>
-  </patternset>
-  <patternset id="compiler.resources">
-    <include name="**/?*.properties"/>
-    <include name="**/?*.xml"/>
-    <include name="**/?*.gif"/>
-    <include name="**/?*.png"/>
-    <include name="**/?*.jpeg"/>
-    <include name="**/?*.jpg"/>
-    <include name="**/?*.html"/>
-    <include name="**/?*.dtd"/>
-    <include name="**/?*.tld"/>
-    <include name="**/?*.ftl"/>
-    <!--<include name="**/?*.so"/>-->
-    <!--<include name="**/?*.dll"/>-->
-    <!--<include name="**/?*.jnilib"/>-->
-  </patternset>
-  
-  <!-- JDK definitions -->
-  
-  <property name="jdk.bin" value="${jdk.home}/Contents/Home/bin"/>
-  <path id="idea.classpath">
-    <fileset dir="${idea.home}">
-      <include name="${jdk.home}/Contents/Home/lib/deploy.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/dt.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/javaws.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/jce.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/jconsole.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/management-agent.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/plugin.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/sa-jdi.jar"/>
-      <include name="${jdk.home}/Contents/Classes/alt-rt.jar"/>
-      <include name="${jdk.home}/Contents/Classes/alt-string.jar"/>
-      <include name="${jdk.home}/Contents/Classes/charsets.jar"/>
-      <include name="${jdk.home}/Contents/Classes/classes.jar"/>
-      <include name="${jdk.home}/Contents/Classes/jsse.jar"/>
-      <include name="${jdk.home}/Contents/Classes/ui.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/ext/apple_provider.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/ext/dnsns.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/ext/localedata.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/ext/sunjce_provider.jar"/>
-      <include name="${jdk.home}/Contents/Home/lib/ext/sunpkcs11.jar"/>
-      <include name="lib/alloy.jar"/>
-      <include name="lib/annotations.jar"/>
-      <include name="lib/asm-commons.jar"/>
-      <include name="lib/asm-tree-3.0.jar"/>
-      <include name="lib/asm.jar"/>
-      <include name="lib/automaton.jar"/>
-      <include name="lib/batik.jar"/>
-      <include name="lib/boot.jar"/>
-      <include name="lib/bootstrap.jar"/>
-      <include name="lib/cglib-2.2.2.jar"/>
-      <include name="lib/cli-10.jar"/>
-      <include name="lib/commons-codec-1.3.jar"/>
-      <include name="lib/commons-collections.jar"/>
-      <include name="lib/commons-httpclient-3.1-patched.jar"/>
-      <include name="lib/commons-lang-2.4.jar"/>
-      <include name="lib/commons-logging-1.1.1.jar"/>
-      <include name="lib/commons-net-2.0-patched.jar"/>
-      <include name="lib/dtdparser113.jar"/>
-      <include name="lib/extensions.jar"/>
-      <include name="lib/forms_rt.jar"/>
-      <include name="lib/freemarker.jar"/>
-      <include name="lib/groovy-all-1.8.5.jar"/>
-      <include name="lib/gson-2.0.jar"/>
-      <include name="lib/guava-11.0.1.jar"/>
-      <include name="lib/icons.jar"/>
-      <include name="lib/idea-jsp-openapi.jar"/>
-      <include name="lib/idea.jar"/>
-      <include name="lib/idea_rt.jar"/>
-      <include name="lib/isorelax.jar"/>
-      <include name="lib/jasper21_rt.jar"/>
-      <include name="lib/jasper2_rt.jar"/>
-      <include name="lib/javac2.jar"/>
-      <include name="lib/jaxen-1.1.3.jar"/>
-      <include name="lib/jcip-annotations.jar"/>
-      <include name="lib/jdkAnnotations.jar"/>
-      <include name="lib/jdom.jar"/>
-      <include name="lib/jgoodies-common-1.2.1.jar"/>
-      <include name="lib/jgoodies-forms.jar"/>
-      <include name="lib/jgoodies-looks-2.4.2.jar"/>
-      <include name="lib/jh.jar"/>
-      <include name="lib/jing.jar"/>
-      <include name="lib/jna-utils.jar"/>
-      <include name="lib/jna.jar"/>
-      <include name="lib/jps-server.jar"/>
-      <include name="lib/jsp-api.jar"/>
-      <include name="lib/jsr173_1.0_api.jar"/>
-      <include name="lib/junit-4.10.jar"/>
-      <include name="lib/junit.jar"/>
-      <include name="lib/log4j.jar"/>
-      <include name="lib/microba.jar"/>
-      <include name="lib/nanoxml-2.2.3.jar"/>
-      <include name="lib/nekohtml-1.9.14.jar"/>
-      <include name="lib/netty-3.3.1.Final.jar"/>
-      <include name="lib/openapi.jar"/>
-      <include name="lib/optimizedFileManager.jar"/>
-      <include name="lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
-      <include name="lib/oromatcher.jar"/>
-      <include name="lib/picocontainer.jar"/>
-      <include name="lib/protobuf-2.4.1.jar"/>
-      <include name="lib/resolver.jar"/>
-      <include name="lib/resources.jar"/>
-      <include name="lib/resources_en.jar"/>
-      <include name="lib/rhino-js-1_7R3.jar"/>
-      <include name="lib/rngom-20051226-patched.jar"/>
-      <include name="lib/sanselan-0.98-snapshot.jar"/>
-      <include name="lib/serviceMessages.jar"/>
-      <include name="lib/servlet-api.jar"/>
-      <include name="lib/swingx-core-1.6.2.jar"/>
-      <include name="lib/trang-core.jar"/>
-      <include name="lib/trove4j.jar"/>
-      <include name="lib/trove4j_src.jar"/>
-      <include name="lib/util.jar"/>
-      <include name="lib/velocity.jar"/>
-      <include name="lib/winp-1.16-patched.jar"/>
-      <include name="lib/xbean.jar"/>
-      <include name="lib/xerces.jar"/>
-      <include name="lib/xml-apis.jar"/>
-      <include name="lib/xmlrpc-2.0.jar"/>
-      <include name="lib/xpp3-1.1.4-min.jar"/>
-      <include name="lib/xstream.jar"/>
-      <include name="lib/yjp-controller-api-redist.jar"/>
-      <include name="plugins/JavaEE/lib/javaee-openapi.jar"/>
-      <include name="plugins/JavaEE/lib/jpa-console.jar"/>
-      <include name="plugins/JavaEE/lib/resources_en.jar"/>
-      <include name="plugins/JSF/lib/jsf-support.jar"/>
-      <include name="plugins/JSF/lib/resources_en.jar"/>
-      <include name="plugins/PersistenceSupport/lib/persistence-openapi.jar"/>
-      <include name="plugins/PersistenceSupport/lib/resources_en.jar"/>
-      <include name="plugins/DatabaseSupport/lib/database-openapi.jar"/>
-      <include name="plugins/DatabaseSupport/lib/jdbc-console.jar"/>
-      <include name="plugins/DatabaseSupport/lib/resources_en.jar"/>
-      <include name="plugins/CSS/lib/css-openapi.jar"/>
-      <include name="plugins/CSS/lib/resources_en.jar"/>
-    </fileset>
-  </path>
-  
+
+
+    <property file="jd-intellij.properties"/>
+    <!-- Uncomment the following property if no tests compilation is needed -->
+    <!--
+    <property name="skip.tests" value="true"/>
+     -->
+
+    <!-- Compiler options -->
+
+    <property name="compiler.debug" value="on"/>
+    <property name="compiler.generate.no.warnings" value="off"/>
+    <property name="compiler.args" value=""/>
+    <property name="compiler.max.memory" value="128m"/>
+    <patternset id="ignored.files">
+        <exclude name="**/CVS/**"/>
+        <exclude name="**/SCCS/**"/>
+        <exclude name="**/RCS/**"/>
+        <exclude name="**/rcs/**"/>
+        <exclude name="**/.DS_Store/**"/>
+        <exclude name="**/.svn/**"/>
+        <exclude name="**/.pyc/**"/>
+        <exclude name="**/.pyo/**"/>
+        <exclude name="**/*.pyc/**"/>
+        <exclude name="**/*.pyo/**"/>
+        <exclude name="**/.git/**"/>
+        <exclude name="**/*.hprof/**"/>
+        <exclude name="**/_svn/**"/>
+        <exclude name="**/.hg/**"/>
+        <exclude name="**/*.lib/**"/>
+        <exclude name="**/*~/**"/>
+        <exclude name="**/__pycache__/**"/>
+        <exclude name="**/.bundle/**"/>
+        <exclude name="**/*.rbc/**"/>
+        <exclude name="**/*.orig/**"/>
+    </patternset>
+    <patternset id="library.patterns">
+        <include name="*.war"/>
+        <include name="*.ear"/>
+        <include name="*.apk"/>
+        <include name="*.zip"/>
+        <include name="*.swc"/>
+        <include name="*.ane"/>
+        <include name="*.egg"/>
+        <include name="*.jar"/>
+    </patternset>
+    <patternset id="compiler.resources">
+        <include name="**/?*.properties"/>
+        <include name="**/?*.xml"/>
+        <include name="**/?*.gif"/>
+        <include name="**/?*.png"/>
+        <include name="**/?*.jpeg"/>
+        <include name="**/?*.jpg"/>
+        <include name="**/?*.html"/>
+        <include name="**/?*.dtd"/>
+        <include name="**/?*.tld"/>
+        <include name="**/?*.ftl"/>
+        <!--<include name="**/?*.so"/>-->
+        <!--<include name="**/?*.dll"/>-->
+        <!--<include name="**/?*.jnilib"/>-->
+    </patternset>
+
+    <!-- JDK definitions -->
+
+    <property name="jdk.bin" value="${jdk.home}/bin"/>
+
+    <path id="idea.classpath">
+        <fileset dir="${idea.home}">
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-rt.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-string.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar"/>
+            <include name="../../System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar"/>
+            <include name="lib/alloy.jar"/>
+            <include name="lib/annotations.jar"/>
+            <include name="lib/asm-commons.jar"/>
+            <include name="lib/asm-tree-3.0.jar"/>
+            <include name="lib/asm.jar"/>
+            <include name="lib/automaton.jar"/>
+            <include name="lib/batik.jar"/>
+            <include name="lib/boot.jar"/>
+            <include name="lib/bootstrap.jar"/>
+            <include name="lib/cglib-2.2.2.jar"/>
+            <include name="lib/cli-10.jar"/>
+            <include name="lib/commons-codec-1.3.jar"/>
+            <include name="lib/commons-collections.jar"/>
+            <include name="lib/commons-httpclient-3.1-patched.jar"/>
+            <include name="lib/commons-lang-2.4.jar"/>
+            <include name="lib/commons-logging-1.1.1.jar"/>
+            <include name="lib/commons-net-2.0-patched.jar"/>
+            <include name="lib/dtdparser113.jar"/>
+            <include name="lib/extensions.jar"/>
+            <include name="lib/forms_rt.jar"/>
+            <include name="lib/freemarker.jar"/>
+            <include name="lib/groovy-all-1.8.5.jar"/>
+            <include name="lib/gson-2.0.jar"/>
+            <include name="lib/guava-11.0.1.jar"/>
+            <include name="lib/icons.jar"/>
+            <include name="lib/idea-jsp-openapi.jar"/>
+            <include name="lib/idea.jar"/>
+            <include name="lib/idea_rt.jar"/>
+            <include name="lib/isorelax.jar"/>
+            <include name="lib/jasper21_rt.jar"/>
+            <include name="lib/jasper2_rt.jar"/>
+            <include name="lib/javac2.jar"/>
+            <include name="lib/jaxen-1.1.3.jar"/>
+            <include name="lib/jcip-annotations.jar"/>
+            <include name="lib/jdkAnnotations.jar"/>
+            <include name="lib/jdom.jar"/>
+            <include name="lib/jgoodies-common-1.2.1.jar"/>
+            <include name="lib/jgoodies-forms.jar"/>
+            <include name="lib/jgoodies-looks-2.4.2.jar"/>
+            <include name="lib/jh.jar"/>
+            <include name="lib/jing.jar"/>
+            <include name="lib/jna-utils.jar"/>
+            <include name="lib/jna.jar"/>
+            <include name="lib/jps-server.jar"/>
+            <include name="lib/jsp-api.jar"/>
+            <include name="lib/jsr173_1.0_api.jar"/>
+            <include name="lib/junit-4.10.jar"/>
+            <include name="lib/junit.jar"/>
+            <include name="lib/log4j.jar"/>
+            <include name="lib/microba.jar"/>
+            <include name="lib/nanoxml-2.2.3.jar"/>
+            <include name="lib/nekohtml-1.9.14.jar"/>
+            <include name="lib/netty-3.3.1.Final.jar"/>
+            <include name="lib/openapi.jar"/>
+            <include name="lib/optimizedFileManager.jar"/>
+            <include name="lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar"/>
+            <include name="lib/oromatcher.jar"/>
+            <include name="lib/picocontainer.jar"/>
+            <include name="lib/protobuf-2.4.1.jar"/>
+            <include name="lib/quaqua.jar"/>
+            <include name="lib/resolver.jar"/>
+            <include name="lib/resources.jar"/>
+            <include name="lib/resources_en.jar"/>
+            <include name="lib/rhino-js-1_7R3.jar"/>
+            <include name="lib/rngom-20051226-patched.jar"/>
+            <include name="lib/sanselan-0.98-snapshot.jar"/>
+            <include name="lib/serviceMessages.jar"/>
+            <include name="lib/servlet-api.jar"/>
+            <include name="lib/swingx-core-1.6.2.jar"/>
+            <include name="lib/trang-core.jar"/>
+            <include name="lib/trove4j.jar"/>
+            <include name="lib/trove4j_src.jar"/>
+            <include name="lib/util.jar"/>
+            <include name="lib/velocity.jar"/>
+            <include name="lib/winp-1.16-patched.jar"/>
+            <include name="lib/xbean.jar"/>
+            <include name="lib/xerces.jar"/>
+            <include name="lib/xml-apis.jar"/>
+            <include name="lib/xmlrpc-2.0.jar"/>
+            <include name="lib/xpp3-1.1.4-min.jar"/>
+            <include name="lib/xstream.jar"/>
+            <include name="lib/yjp-controller-api-redist.jar"/>
+            <include name="plugins/JavaEE/lib/javaee-openapi.jar"/>
+            <include name="plugins/JavaEE/lib/jpa-console.jar"/>
+            <include name="plugins/JavaEE/lib/resources_en.jar"/>
+            <include name="plugins/JSF/lib/jsf-support.jar"/>
+            <include name="plugins/JSF/lib/resources_en.jar"/>
+            <include name="plugins/PersistenceSupport/lib/persistence-openapi.jar"/>
+            <include name="plugins/PersistenceSupport/lib/resources_en.jar"/>
+            <include name="plugins/DatabaseSupport/lib/database-openapi.jar"/>
+            <include name="plugins/DatabaseSupport/lib/jdbc-console.jar"/>
+            <include name="plugins/DatabaseSupport/lib/resources_en.jar"/>
+            <include name="plugins/CSS/lib/css-openapi.jar"/>
+            <include name="plugins/CSS/lib/resources_en.jar"/>
+        </fileset>
+    </path>
+
   <property name="project.jdk.home" value="${idea.home}"/>
-  <property name="project.jdk.bin" value="${jdk.bin}"/>
-  <property name="project.jdk.classpath" value="idea.classpath"/>
+    <property name="project.jdk.bin" value="${jdk.bin}"/>
+    <property name="project.jdk.classpath" value="idea.classpath"/>
 
 
-  <!-- Global Libraries -->
+    <!-- Global Libraries -->
 
 
-  <!-- Application Server Libraries -->
-  <!-- Register Custom Compiler Taskdefs -->
-  <property name="javac2.home" value="${idea.home}/lib"/>
-  <path id="javac2.classpath">
-    <pathelement location="${javac2.home}/javac2.jar"/>
-    <pathelement location="${javac2.home}/jdom.jar"/>
-    <pathelement location="${javac2.home}/asm.jar"/>
-    <pathelement location="${javac2.home}/asm-commons.jar"/>
-    <pathelement location="${javac2.home}/jgoodies-forms.jar"/>
-  </path>
-  <target name="register.custom.compilers">
-    <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
-    <taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
-  </target>
-  
-  <!-- Modules -->
-  
-  <import file="${basedir}/module_jd-intellij.xml"/>
-  
-  <target name="init" description="Build initialization">
-    <!-- Perform any build initialization in this target -->
-  </target>
-  
-  <target name="clean" depends="clean.module.jd-intellij" description="cleanup all"/>
-  
-  <target name="make" depends="init, clean, plugin.build.jar.jd-intellij" description="build all modules"/>
+    <!-- Application Server Libraries -->
+    <!-- Register Custom Compiler Taskdefs -->
+    <property name="javac2.home" value="${idea.home}/lib"/>
+    <path id="javac2.classpath">
+        <pathelement location="${javac2.home}/javac2.jar"/>
+        <pathelement location="${javac2.home}/jdom.jar"/>
+        <pathelement location="${javac2.home}/asm.jar"/>
+        <pathelement location="${javac2.home}/asm-commons.jar"/>
+        <pathelement location="${javac2.home}/jgoodies-forms.jar"/>
+    </path>
+
+    <target name="register.custom.compilers">
+        <taskdef name="javac2"
+                 classname="com.intellij.ant.Javac2"
+                 classpathref="javac2.classpath"
+                />
+        <taskdef name="instrumentIdeaExtensions"
+                 classname="com.intellij.ant.InstrumentIdeaExtensions"
+                 classpathref="javac2.classpath"
+                />
+    </target>
+
+    <!-- Modules -->
+
+    <import file="${basedir}/module_jd-intellij.xml"/>
+
+    <target name="init" description="Build initialization">
+        <!-- Perform any build initialization in this target -->
+    </target>
+
+    <target name="clean" depends="clean.module.jd-intellij" description="cleanup all"/>
+
+    <target name="make" depends="init, clean, plugin.build.deploy.jd-intellij" description="build all modules"/>
 </project>

module_jd-intellij.xml

 <?xml version="1.0" encoding="UTF-8"?>
 <project name="module_jd-intellij" default="compile.module.jd-intellij">
-  <dirname property="module.jd-intellij.basedir" file="${ant.file.module_jd-intellij}"/>
-  
+    <dirname property="module.jd-intellij.basedir" file="${ant.file.module_jd-intellij}"/>
+
   <property name="module.jdk.home.jd-intellij" value="${jdk.home}"/>
   <property name="module.jdk.bin.jd-intellij" value="${jdk.bin}"/>
   <property name="module.jdk.classpath.jd-intellij" value="idea.classpath"/>
-  
-  <property name="compiler.args.jd-intellij" value="${compiler.args}"/>
-  
-  <property name="jd-intellij.output.dir" value="${module.jd-intellij.basedir}/out/production/jd-intellij"/>
-  <property name="jd-intellij.testoutput.dir" value="${module.jd-intellij.basedir}/out/test/jd-intellij"/>
-  
-  <path id="jd-intellij.module.bootclasspath">
-    <!-- Paths to be included in compilation bootclasspath -->
-  </path>
-  
-  <path id="jd-intellij.module.classpath">
-    <path refid="${module.jdk.classpath.jd-intellij}"/>
-  </path>
-  
-  <path id="jd-intellij.runtime.module.classpath">
-    <pathelement location="${jd-intellij.output.dir}"/>
-    <fileset dir="${basedir}/native">
-      <patternset refid="library.patterns"/>
-    </fileset>
-  </path>
-  
-  <path id="jd-intellij.module.classpath">
-    <path refid="${module.jdk.classpath.jd-intellij}"/>
-    <pathelement location="${jd-intellij.output.dir}"/>
-  </path>
-  
-  <path id="jd-intellij.runtime.module.classpath">
-    <pathelement location="${jd-intellij.testoutput.dir}"/>
-    <pathelement location="${jd-intellij.output.dir}"/>
-    <fileset dir="${basedir}/native">
-      <patternset refid="library.patterns"/>
-    </fileset>
-  </path>
-  
-  
-  <patternset id="excluded.from.module.jd-intellij">
-    <patternset refid="ignored.files"/>
-  </patternset>
-  
-  <patternset id="excluded.from.compilation.jd-intellij">
-    <patternset refid="excluded.from.module.jd-intellij"/>
-  </patternset>
-  
-  <path id="jd-intellij.module.sourcepath">
-    <dirset dir="${module.jd-intellij.basedir}">
-      <include name="src/main/java"/>
-      <!--<include name="src/main/native"/>-->
-      <include name="src/main/resources"/>
-    </dirset>
-  </path>
-  
-  
-  <target name="compile.module.jd-intellij" depends="register.custom.compilers" description="Compile module jd-intellij; production classes">
-    <mkdir dir="${jd-intellij.output.dir}"/>
-    <javac2 destdir="${jd-intellij.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.jd-intellij}/javac">
-      <compilerarg line="${compiler.args.jd-intellij}"/>
-      <bootclasspath refid="jd-intellij.module.bootclasspath"/>
-      <classpath refid="jd-intellij.module.classpath"/>
-      <src refid="jd-intellij.module.sourcepath"/>
-      <patternset refid="excluded.from.compilation.jd-intellij"/>
-    </javac2>
-    
-    <copy todir="${jd-intellij.output.dir}">
-      <fileset dir="${module.jd-intellij.basedir}/src/main/java">
-        <patternset refid="compiler.resources"/>
-        <type type="file"/>
-      </fileset>
-      <!--<fileset dir="${module.jd-intellij.basedir}/src/main/native">-->
-        <!--<patternset refid="compiler.resources"/>-->
-        <!--<type type="file"/>-->
-      <!--</fileset>-->
-      <fileset dir="${module.jd-intellij.basedir}/src/main/resources">
-        <patternset refid="compiler.resources"/>
-        <type type="file"/>
-      </fileset>
-    </copy>
-  </target>
-  
-  <target name="compile.module.jd-intellij.tests" depends="register.custom.compilers,compile.module.jd-intellij" description="compile module jd-intellij; test classes" unless="skip.tests"/>
-  
-  <target name="clean.module.jd-intellij" description="cleanup module">
-    <delete dir="${jd-intellij.output.dir}"/>
-    <delete dir="${jd-intellij.testoutput.dir}"/>
-  </target>
-  
-  <property name="jd-intellij.plugin.path.jar" value="/newrepo/jd-intellij.zip"/>
-  
-  <!-- Build archive for plugin 'jd-intellij' -->
-  <target name="plugin.build.jar.jd-intellij" depends="compile.module.jd-intellij" description="Build plugin archive for module &#39;jd-intellij&#39;">
-    <property name="tmp.dir.jd-intellij" value="${module.jd-intellij.basedir}/temp"/>
-    <mkdir dir="${tmp.dir.jd-intellij}"/>
-    <mkdir dir="${tmp.dir.jd-intellij}/jd-intellij/lib"/>
-    <jar destfile="${tmp.dir.jd-intellij}/jd-intellij/lib/jd-intellij.jar" duplicate="preserve">
-      <zipfileset dir="${module.jd-intellij.basedir}/out/production/jd-intellij"/>
-      <zipfileset file="${module.jd-intellij.basedir}/META-INF/plugin.xml" prefix="META-INF"/>
-      <manifest>
-        <attribute name="Created-By" value="IntelliJ IDEA"/>
-        <attribute name="Manifest-Version" value="1.0"/>
-      </manifest>
-    </jar>
-    <copy todir="${tmp.dir.jd-intellij}/jd-intellij">
-      <fileset dir="${module.jd-intellij.basedir}/src/main/native">
-        <type type="file"/>
-      </fileset>
-    </copy>
-    <zip destfile="${module.jd-intellij.basedir}/newrepo/jd-intellij.zip">
-      <fileset dir="${tmp.dir.jd-intellij}"/>
-    </zip>
-    <delete dir="${tmp.dir.jd-intellij}"/>
-  </target>
+
+    <property name="compiler.args.jd-intellij" value="${compiler.args}"/>
+
+    <property name="jd-intellij.output.dir" value="${module.jd-intellij.basedir}/out/production/jd-intellij"/>
+    <property name="jd-intellij.testoutput.dir" value="${module.jd-intellij.basedir}/out/test/jd-intellij"/>
+
+    <path id="jd-intellij.module.bootclasspath">
+        <!-- Paths to be included in compilation bootclasspath -->
+    </path>
+
+    <path id="jd-intellij.module.classpath">
+        <path refid="${module.jdk.classpath.jd-intellij}"/>
+    </path>
+
+    <path id="jd-intellij.runtime.module.classpath">
+        <pathelement location="${jd-intellij.output.dir}"/>
+        <fileset dir="${basedir}/native">
+            <patternset refid="library.patterns"/>
+        </fileset>
+    </path>
+
+    <path id="jd-intellij.module.classpath">
+        <path refid="${module.jdk.classpath.jd-intellij}"/>
+        <pathelement location="${jd-intellij.output.dir}"/>
+    </path>
+
+    <path id="jd-intellij.runtime.module.classpath">
+        <pathelement location="${jd-intellij.testoutput.dir}"/>
+        <pathelement location="${jd-intellij.output.dir}"/>
+        <fileset dir="${basedir}/native">
+            <patternset refid="library.patterns"/>
+        </fileset>
+    </path>
+
+
+    <patternset id="excluded.from.module.jd-intellij">
+        <patternset refid="ignored.files"/>
+    </patternset>
+
+    <patternset id="excluded.from.compilation.jd-intellij">
+        <patternset refid="excluded.from.module.jd-intellij"/>
+    </patternset>
+
+    <path id="jd-intellij.module.sourcepath">
+        <dirset dir="${module.jd-intellij.basedir}">
+            <include name="src/main/java"/>
+            <!--<include name="src/main/native"/>-->
+            <include name="src/main/resources"/>
+        </dirset>
+    </path>
+
+
+    <target name="compile.module.jd-intellij"
+            depends="register.custom.compilers"
+            description="Compile module jd-intellij; production classes">
+        <mkdir dir="${jd-intellij.output.dir}"/>
+        <javac2 destdir="${jd-intellij.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}"
+                memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.jd-intellij}/javac">
+            <compilerarg line="${compiler.args.jd-intellij}"/>
+            <bootclasspath refid="jd-intellij.module.bootclasspath"/>
+            <classpath refid="jd-intellij.module.classpath"/>
+            <src refid="jd-intellij.module.sourcepath"/>
+            <patternset refid="excluded.from.compilation.jd-intellij"/>
+        </javac2>
+
+        <copy todir="${jd-intellij.output.dir}">
+            <fileset dir="${module.jd-intellij.basedir}/src/main/java">
+                <patternset refid="compiler.resources"/>
+                <type type="file"/>
+            </fileset>
+            <!--<fileset dir="${module.jd-intellij.basedir}/src/main/native">-->
+            <!--<patternset refid="compiler.resources"/>-->
+            <!--<type type="file"/>-->
+            <!--</fileset>-->
+            <fileset dir="${module.jd-intellij.basedir}/src/main/resources">
+                <patternset refid="compiler.resources"/>
+                <type type="file"/>
+            </fileset>
+        </copy>
+
+        <copy todir="${jd-intellij.output.dir}/META-INF">
+            <fileset dir="${module.jd-intellij.basedir}/META-INF"/>
+            <filterset>
+                <filter token="CURRENT_VERSION" value="${current.version}" />
+            </filterset>
+        </copy>
+    </target>
+
+    <target name="compile.module.jd-intellij.tests"
+            depends="register.custom.compilers,compile.module.jd-intellij"
+            description="compile module jd-intellij; test classes"
+            unless="skip.tests"/>
+
+    <target name="clean.module.jd-intellij" description="cleanup module">
+        <delete dir="${jd-intellij.output.dir}"/>
+        <delete dir="${jd-intellij.testoutput.dir}"/>
+    </target>
+
+    <property name="module.jd-intellij.deploydir" value="${module.jd-intellij.basedir}/deploy"/>
+    <property name="jd-intellij.zip.file" value="jd-intellij-${current.version}.zip"/>
+    <property name="jd-intellij.plugin.path.zip" value="${module.jd-intellij.deploydir}/${jd-intellij.zip.file}"/>
+
+    <!-- Build archive for plugin 'jd-intellij' -->
+    <target name="plugin.build.zip.jd-intellij"
+            depends="compile.module.jd-intellij"
+            description="Build plugin archive for module &#39;jd-intellij&#39;">
+
+        <property name="tmp.dir.jd-intellij" value="${module.jd-intellij.basedir}/temp"/>
+        <mkdir dir="${tmp.dir.jd-intellij}"/>
+        <mkdir dir="${tmp.dir.jd-intellij}/jd-intellij/lib"/>
+        <jar destfile="${tmp.dir.jd-intellij}/jd-intellij/lib/jd-intellij.jar" duplicate="preserve">
+            <zipfileset dir="${module.jd-intellij.basedir}/out/production/jd-intellij"/>
+            <!--<zipfileset file="${module.jd-intellij.basedir}/META-INF/plugin.xml" prefix="META-INF"/>-->
+            <manifest>
+                <attribute name="Created-By" value="IntelliJ IDEA"/>
+                <attribute name="Manifest-Version" value="1.0"/>
+            </manifest>
+        </jar>
+
+        <copy todir="${tmp.dir.jd-intellij}/jd-intellij">
+            <fileset dir="${module.jd-intellij.basedir}/src/main/native">
+                <type type="file"/>
+            </fileset>
+        </copy>
+        <zip destfile="${jd-intellij.plugin.path.zip}">
+            <fileset dir="${tmp.dir.jd-intellij}"/>
+        </zip>
+        <delete dir="${tmp.dir.jd-intellij}"/>
+    </target>
+
+
+    <target name="plugin.make.deploy-file.jd-intellij"
+            description="Make the plugin repository file">
+
+         <echo file="${module.jd-intellij.deploydir}/updatePlugins.xml"><![CDATA[
+<!DOCTYPE plugins [
+        <!ELEMENT plugins (plugin)*>
+        <!ELEMENT plugin (#PCDATA)>
+        <!ATTLIST plugin
+                id CDATA #REQUIRED
+                url CDATA #REQUIRED
+                version CDATA #IMPLIED>
+        ]>
+<plugins>
+    <plugin id="jd-intellij" url="${plugin.deploy.url}/${jd-intellij.zip.file}" version="${current.version}" />
+</plugins>
+             ]]></echo>
+
+    </target>
+
+    <target name="plugin.build.deploy.jd-intellij"
+            depends="plugin.make.deploy-file.jd-intellij, plugin.build.zip.jd-intellij"
+            description="Build plugin archive and deploy file for module &#39;jd-intellij&#39;">
+    </target>
+
 </project>