include new Windows launcher in community dist
authorDmitry Jemerov <yole@jetbrains.com>
Thu, 28 Mar 2013 19:45:52 +0000 (20:45 +0100)
committerDmitry Jemerov <yole@jetbrains.com>
Thu, 28 Mar 2013 19:49:40 +0000 (20:49 +0100)
bin/WinLauncher/WinLauncher.exe [new file with mode: 0644]
bin/WinLauncher/WinLauncher64.exe [new file with mode: 0644]
build/conf/ideaCE-launcher.properties [new file with mode: 0644]
build/lib/launcher-generator.jar [new file with mode: 0644]
build/scripts/dist.gant
build/scripts/utils.gant
tools/launcher-generator/.idea/artifacts/launcher_generator_jar.xml [new file with mode: 0644]

diff --git a/bin/WinLauncher/WinLauncher.exe b/bin/WinLauncher/WinLauncher.exe
new file mode 100644 (file)
index 0000000..e761472
Binary files /dev/null and b/bin/WinLauncher/WinLauncher.exe differ
diff --git a/bin/WinLauncher/WinLauncher64.exe b/bin/WinLauncher/WinLauncher64.exe
new file mode 100644 (file)
index 0000000..a95fd33
Binary files /dev/null and b/bin/WinLauncher/WinLauncher64.exe differ
diff --git a/build/conf/ideaCE-launcher.properties b/build/conf/ideaCE-launcher.properties
new file mode 100644 (file)
index 0000000..a1c7a5e
--- /dev/null
@@ -0,0 +1 @@
+IDS_JDK_ONLY=true
diff --git a/build/lib/launcher-generator.jar b/build/lib/launcher-generator.jar
new file mode 100644 (file)
index 0000000..146c1a5
Binary files /dev/null and b/build/lib/launcher-generator.jar differ
index 4abf7ef92216cbb77bcb3532245107584c2c3c4b..f440bbf62252cdbace2347503cb05e211f1252d4 100644 (file)
@@ -130,7 +130,10 @@ def layoutAll(Map args, String home, String out, Paths _paths = null, buildJps =
   buildWinZip("$paths.artifacts/idea${args.buildNumber}.win.zip", [paths.distAll, paths.distWin])
 
   def macAppRoot = isEap() ? "${p("component.version.codename")}-${args.buildNumber}.app" : "IntelliJ IDEA ${p("component.version.major")} CE.app"
-  buildMacZip(macAppRoot, "$paths.artifacts/idea${args.buildNumber}.mac.zip", [paths.distAll], paths.distMac)
+
+  String macZip = "$paths.artifacts/idea${args.buildNumber}.mac.zip"
+  buildMacZip(macAppRoot, macZip, [paths.distAll], paths.distMac)
+  notifyArtifactBuilt(macZIp)
 
   buildTarGz("idea-${args.buildNumber}", "$paths.artifacts/idea${args.buildNumber}.tar", [paths.distAll, paths.distUnix])
 }
@@ -148,6 +151,9 @@ private layoutWin(Map args, String home, Paths paths) {
 
   winScripts(target, home, "idea.bat", args)
   winVMOptions(target, null, "idea.exe", "idea64.exe")
+  String launcherProperties = "$home/build/conf/ideaCE-launcher.properties"
+  buildWinLauncher(home, "$home/bin/WinLauncher/WinLauncher.exe", "$target/bin/idea.exe", appInfoFile(), launcherProperties)
+  buildWinLauncher(home, "$home/bin/WinLauncher/WinLauncher64.exe", "$target/bin/idea64.exe", appInfoFile(), launcherProperties)
 }
 
 private layoutMac(Map _args, String home, Paths paths) {
index 66a1317a7f259115ddd0a43ae752344222d2281a..f82ea5f6498a010c2a56dd11bbcf7b7d219f9850 100644 (file)
@@ -726,3 +726,22 @@ private void fixIdeaPropertiesEol(List paths, String eol) {
     }
   }
 }
+
+binding.setVariable("buildWinLauncher", { String ch, String inputPath, String outputPath, String appInfo, String launcherProperties ->
+  projectBuilder.stage("winLauncher")
+
+  ant.java(jar: "$ch/build/lib/launcher-generator.jar", fork: "true") {
+    arg(value: inputPath)
+    arg(value: appInfo)
+    arg(value: "$ch/native/WinLauncher/WinLauncher/resource.h")
+    arg(value: launcherProperties)
+    arg(value: outputPath)
+    classpath {
+      fileset(dir: "$ch/lib") {
+        include(name: "guava*.jar")
+        include(name: "jdom.jar")
+        include(name: "sanselan*.jar")
+      }
+    }
+  }
+})
diff --git a/tools/launcher-generator/.idea/artifacts/launcher_generator_jar.xml b/tools/launcher-generator/.idea/artifacts/launcher_generator_jar.xml
new file mode 100644 (file)
index 0000000..e738633
--- /dev/null
@@ -0,0 +1,16 @@
+<component name="ArtifactManager">
+  <artifact name="launcher-generator:jar">
+    <output-path>$PROJECT_DIR$/out/artifacts/launcher_generator_jar</output-path>
+    <root id="root">
+      <element id="archive" name="launcher-generator.jar">
+        <element id="directory" name="META-INF">
+          <element id="file-copy" path="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" />
+        </element>
+        <element id="module-output" name="launcher-generator" />
+      </element>
+      <element id="library" level="project" name="sanselan-0.98-snapshot" />
+      <element id="library" level="project" name="guava-12.0" />
+      <element id="library" level="project" name="jdom" />
+    </root>
+  </artifact>
+</component>
\ No newline at end of file