Browse Source

Initial work on making IDEA run DMDirc.

This adds a DMDirc run configuration, which will generate a
version.config in the right place.

This is enough to get a client working, but probably isn't
builiding new plugins yet.

Change-Id: I4a2c20ea23164c7f71200e9b767d5dc3507945a7
Reviewed-on: http://gerrit.dmdirc.com/3848
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
pull/1/head
Chris Smith 9 years ago
parent
commit
313777016f
3 changed files with 32 additions and 0 deletions
  1. 7
    0
      .idea/ant.xml
  2. 20
    0
      .idea/runConfigurations/DMDirc.xml
  3. 5
    0
      build-versioning.xml

+ 7
- 0
.idea/ant.xml View File

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="AntConfiguration">
4
+    <buildFile url="file://$PROJECT_DIR$/build.xml" />
5
+  </component>
6
+</project>
7
+

+ 20
- 0
.idea/runConfigurations/DMDirc.xml View File

@@ -0,0 +1,20 @@
1
+<component name="ProjectRunConfigurationManager">
2
+  <configuration default="false" name="DMDirc" type="Application" factoryName="Application">
3
+    <option name="MAIN_CLASS_NAME" value="com.dmdirc.Main" />
4
+    <option name="VM_PARAMETERS" value="" />
5
+    <option name="PROGRAM_PARAMETERS" value="" />
6
+    <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
7
+    <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
8
+    <option name="ALTERNATIVE_JRE_PATH" value="" />
9
+    <option name="ENABLE_SWING_INSPECTOR" value="false" />
10
+    <option name="ENV_VARIABLES" />
11
+    <option name="PASS_PARENT_ENVS" value="true" />
12
+    <module name="DMDirc" />
13
+    <envs />
14
+    <RunnerSettings RunnerId="Run" />
15
+    <ConfigurationWrapper RunnerId="Run" />
16
+    <method>
17
+      <option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/build.xml" target="write-version-for-idea" />
18
+    </method>
19
+  </configuration>
20
+</component>

+ 5
- 0
build-versioning.xml View File

@@ -3,6 +3,7 @@
3 3
     <description>Adds automatic versioning information to DMDirc</description>
4 4
 
5 5
     <property name="version.config" value="build/classes/com/dmdirc/version.config"/>
6
+    <property name="version.config.idea" value="build/production/DMDirc/com/dmdirc/version.config"/>
6 7
     <property name="defaults.path" value="modules/defaults/.git/"/>
7 8
     <property name="defaults.output" value="build/classes/com/dmdirc/config/defaults/"/>
8 9
     <property name="defaults.target" value="${defaults.output}default/defaults"/>
@@ -16,6 +17,10 @@
16 17
 
17 18
     <target name="-write-version" depends="-init-version, -write-version-header, -add-version, -write-updater, -write-identities, -write-disable-updates"/>
18 19
 
20
+    <target name="write-version-for-idea" depends="-write-version">
21
+        <copy file="${version.config}" tofile="${version.config.idea}" overwrite="true"/>
22
+    </target>
23
+
19 24
     <target name="-write-version-header">
20 25
         <echo file="${version.config}"># This is a DMDirc configuration file automatically generated by
21 26
 # the build process.

Loading…
Cancel
Save