A even more minimal example
This commit is contained in:
parent
0d76f6c7f7
commit
afa4c04a30
@ -58,16 +58,11 @@ So today I present you a minimal `pom.xml` compiling forms on the fly. A complet
|
|||||||
<phase>compile</phase>
|
<phase>compile</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<property name="compile_classpath" refid="maven.runtime.classpath"/>
|
|
||||||
<path id="j2cp">
|
|
||||||
<pathelement path="${compile_classpath}"/>
|
|
||||||
</path>
|
|
||||||
<path id="j2sp">
|
<path id="j2sp">
|
||||||
<pathelement location="${project.basedir}/src/main/java"/>
|
<pathelement location="${project.basedir}/src/main/java"/>
|
||||||
</path>
|
</path>
|
||||||
<taskdef name="javac2" classpathref="j2cp" classname="com.intellij.ant.Javac2"/>
|
<taskdef name="javac2" classpathref="maven.runtime.classpath" classname="com.intellij.ant.Javac2"/>
|
||||||
<javac2 destdir="${project.basedir}/target/classes">
|
<javac2 destdir="${project.basedir}/target/classes">
|
||||||
<classpath refid="j2cp"/>
|
|
||||||
<src refid="j2sp"/>
|
<src refid="j2sp"/>
|
||||||
</javac2>
|
</javac2>
|
||||||
</target>
|
</target>
|
||||||
|
@ -44,8 +44,8 @@
|
|||||||
"keywords": [
|
"keywords": [
|
||||||
"hacking", "english", "software engineering", "maven"
|
"hacking", "english", "software engineering", "maven"
|
||||||
],
|
],
|
||||||
"articleBody": "In 2021 I worked in a small team of students on an old fashioned Java swing application. To design our forms rather fast, we chose to opt for the IJ-GUI designer.\nThat was a rather annoying mistake, trying to package that thing just hours before the deadline. We then opted to just let IntelliJ compile the .forms into .java directly, which then cluttered our version control.\nSo today I present you a minimal pom.xml compiling forms on the fly. A complete minimal working example can be found on my private git: git.tobiasmanske.de\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\" 4.0.0 de.tobiasmanske example 1.0-SNAPSHOT 11 11 203.7148.57 jetbrains.releases https://www.jetbrains.com/intellij-repository/releases jetbrains.3rdparty https://dl.bintray.com/jetbrains/intellij-third-party-dependencies maven-antrun-plugin 3.0.0 compile name=\"compile_classpath\" refid=\"maven.runtime.classpath\"/ id=\"j2cp\" path=\"${compile_classpath}\"/ id=\"j2sp\" location=\"${project.basedir}/src/main/java\"/ name=\"javac2\" classpathref=\"j2cp\" classname=\"com.intellij.ant.Javac2\"/ destdir=\"${project.basedir}/target/classes\" refid=\"j2cp\"/ refid=\"j2sp\"/ run com.jetbrains.intellij.java java-gui-forms-rt ${intellij.version} com.jetbrains.intellij.java java-compiler-ant-tasks ${intellij.version} That’s all for today, I hope this helped you, so that you don’t struggle with it for as long.\n",
|
"articleBody": "In 2021 I worked in a small team of students on an old fashioned Java swing application. To design our forms rather fast, we chose to opt for the IJ-GUI designer.\nThat was a rather annoying mistake, trying to package that thing just hours before the deadline. We then opted to just let IntelliJ compile the .forms into .java directly, which then cluttered our version control.\nSo today I present you a minimal pom.xml compiling forms on the fly. A complete minimal working example can be found on my private git: git.tobiasmanske.de\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\" 4.0.0 de.tobiasmanske example 1.0-SNAPSHOT 11 11 203.7148.57 jetbrains.releases https://www.jetbrains.com/intellij-repository/releases jetbrains.3rdparty https://dl.bintray.com/jetbrains/intellij-third-party-dependencies maven-antrun-plugin 3.0.0 compile id=\"j2sp\" location=\"${project.basedir}/src/main/java\"/ name=\"javac2\" classpathref=\"maven.runtime.classpath\" classname=\"com.intellij.ant.Javac2\"/ destdir=\"${project.basedir}/target/classes\" refid=\"j2sp\"/ run com.jetbrains.intellij.java java-gui-forms-rt ${intellij.version} com.jetbrains.intellij.java java-compiler-ant-tasks ${intellij.version} That’s all for today, I hope this helped you, so that you don’t struggle with it for as long.\n",
|
||||||
"wordCount" : "267",
|
"wordCount" : "252",
|
||||||
"inLanguage": "en",
|
"inLanguage": "en",
|
||||||
"datePublished": "2021-02-23T03:59:59+01:00",
|
"datePublished": "2021-02-23T03:59:59+01:00",
|
||||||
"dateModified": "2021-02-23T03:59:59+01:00",
|
"dateModified": "2021-02-23T03:59:59+01:00",
|
||||||
@ -221,11 +221,6 @@ We then opted to just let IntelliJ compile the .forms into .java directly, which
|
|||||||
</span><span class="lnt">65
|
</span><span class="lnt">65
|
||||||
</span><span class="lnt">66
|
</span><span class="lnt">66
|
||||||
</span><span class="lnt">67
|
</span><span class="lnt">67
|
||||||
</span><span class="lnt">68
|
|
||||||
</span><span class="lnt">69
|
|
||||||
</span><span class="lnt">70
|
|
||||||
</span><span class="lnt">71
|
|
||||||
</span><span class="lnt">72
|
|
||||||
</span></code></pre></td>
|
</span></code></pre></td>
|
||||||
<td class="lntd">
|
<td class="lntd">
|
||||||
<pre class="chroma"><code class="language-xml" data-lang="xml"><span class="cp"><?xml version="1.0" encoding="UTF-8"?></span>
|
<pre class="chroma"><code class="language-xml" data-lang="xml"><span class="cp"><?xml version="1.0" encoding="UTF-8"?></span>
|
||||||
@ -265,16 +260,11 @@ We then opted to just let IntelliJ compile the .forms into .java directly, which
|
|||||||
<span class="nt"><phase></span>compile<span class="nt"></phase></span>
|
<span class="nt"><phase></span>compile<span class="nt"></phase></span>
|
||||||
<span class="nt"><configuration></span>
|
<span class="nt"><configuration></span>
|
||||||
<span class="nt"><target></span>
|
<span class="nt"><target></span>
|
||||||
<span class="nt"><property</span> <span class="na">name=</span><span class="s">"compile_classpath"</span> <span class="na">refid=</span><span class="s">"maven.runtime.classpath"</span><span class="nt">/></span>
|
|
||||||
<span class="nt"><path</span> <span class="na">id=</span><span class="s">"j2cp"</span><span class="nt">></span>
|
|
||||||
<span class="nt"><pathelement</span> <span class="na">path=</span><span class="s">"${compile_classpath}"</span><span class="nt">/></span>
|
|
||||||
<span class="nt"></path></span>
|
|
||||||
<span class="nt"><path</span> <span class="na">id=</span><span class="s">"j2sp"</span><span class="nt">></span>
|
<span class="nt"><path</span> <span class="na">id=</span><span class="s">"j2sp"</span><span class="nt">></span>
|
||||||
<span class="nt"><pathelement</span> <span class="na">location=</span><span class="s">"${project.basedir}/src/main/java"</span><span class="nt">/></span>
|
<span class="nt"><pathelement</span> <span class="na">location=</span><span class="s">"${project.basedir}/src/main/java"</span><span class="nt">/></span>
|
||||||
<span class="nt"></path></span>
|
<span class="nt"></path></span>
|
||||||
<span class="nt"><taskdef</span> <span class="na">name=</span><span class="s">"javac2"</span> <span class="na">classpathref=</span><span class="s">"j2cp"</span> <span class="na">classname=</span><span class="s">"com.intellij.ant.Javac2"</span><span class="nt">/></span>
|
<span class="nt"><taskdef</span> <span class="na">name=</span><span class="s">"javac2"</span> <span class="na">classpathref=</span><span class="s">"maven.runtime.classpath"</span> <span class="na">classname=</span><span class="s">"com.intellij.ant.Javac2"</span><span class="nt">/></span>
|
||||||
<span class="nt"><javac2</span> <span class="na">destdir=</span><span class="s">"${project.basedir}/target/classes"</span><span class="nt">></span>
|
<span class="nt"><javac2</span> <span class="na">destdir=</span><span class="s">"${project.basedir}/target/classes"</span><span class="nt">></span>
|
||||||
<span class="nt"><classpath</span> <span class="na">refid=</span><span class="s">"j2cp"</span><span class="nt">/></span>
|
|
||||||
<span class="nt"><src</span> <span class="na">refid=</span><span class="s">"j2sp"</span><span class="nt">/></span>
|
<span class="nt"><src</span> <span class="na">refid=</span><span class="s">"j2sp"</span><span class="nt">/></span>
|
||||||
<span class="nt"></javac2></span>
|
<span class="nt"></javac2></span>
|
||||||
<span class="nt"></target></span>
|
<span class="nt"></target></span>
|
||||||
|
Loading…
Reference in New Issue
Block a user