Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Created Eclipse OTP.launch target, erl.cmd (for Windows) and changed …

…Compiler to use the pathSeparator for the current platform.
  • Loading branch information...
commit 64e400dee581a223b7707260e92d5c479cb9d6fc 1 parent b38eb4e
Ulrik Skyt authored
Showing with 30 additions and 0 deletions.
  1. +18 −0 OTP.launch
  2. +12 −0 erl.cmd
View
18 OTP.launch
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<stringAttribute key="bad_container_name" value="\erlang\o"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/erlang/src/main/java/erjang/OTPMain.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="erjang.OTPMain"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-root ${env_var:OTPROOT}&#13;&#10;-progname erl&#13;&#10;--&#13;&#10;-home ${env_var:HOME}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="erlang"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Derj.threads=1&#13;&#10;-Derjpath=${env_var:OTP_ERTS_EBIN}"/>
+</launchConfiguration>
View
12 erl.cmd
@@ -0,0 +1,12 @@
+@echo off
+
+IF "x%OTPROOT%" == "x" SET OTPROOT="C:\Program Files\erl7.5.7"
+
+java -ea -cp erjang-0.1.jar ^
+ -Derj.threads=1 ^
+ -Derjpath=%OTP_ERTS_EBIN% erjang.OTPMain ^
+ -root %OTPROOT% ^
+ -progname erl ^
+ -- ^
+ -home %HOME% ^
+ %1 %2 %3 %4 %5 %6 %7 %8 %9
Please sign in to comment.
Something went wrong with that request. Please try again.