This is an automated email from the ASF dual-hosted git repository. isapir pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new ee09a48078 Add Run Configuration for IntelliJ IDEA ee09a48078 is described below commit ee09a48078699fe045d3d20c1dd8174d9ebf5d95 Author: Igal Sapir <isa...@apache.org> AuthorDate: Mon Jan 8 19:56:25 2024 -0800 Add Run Configuration for IntelliJ IDEA --- build.xml | 9 +++++++-- res/ide-support/idea/compiler.xml | 14 ++++++++++++++ res/ide-support/idea/tomcat.iml | 10 ++++++++++ res/ide-support/idea/workspace.xml | 18 ++++++++++++++++++ 4 files changed, 49 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index f743e84102..370591a1a6 100644 --- a/build.xml +++ b/build.xml @@ -275,6 +275,7 @@ <filter token="BND_JAR" value="${bnd.jar}"/> <filter token="UNBOUNDID_JAR" value="${unboundid.jar}"/> <filter token="JUNIT_JAR" value="${junit.jar}"/> + <filter token="OUTPUT_DIR" value="${tomcat.output}"/> </filterset> <!-- Version info filter set --> @@ -3474,7 +3475,7 @@ Read the Building page on the Apache Tomcat documentation site for details on ho <!-- ============================ IntelliJ IDEA=========================== --> <target name="ide-intellij" - depends="download-compile, extras-webservices-prepare, download-test-compile" + depends="download-compile, extras-webservices-prepare, download-test-compile, deploy" description="Creates project directory .idea for IntelliJ IDEA"> <copy todir="${tomcat.home}/.idea"> @@ -3483,7 +3484,11 @@ Read the Building page on the Apache Tomcat documentation site for details on ho <filterset refid="version.filters"/> </copy> - <echo>IntelliJ IDEA project directory created.</echo> + <mkdir dir="${tomcat.home}/lib"/> + + <echo>IntelliJ IDEA project directory created. +The SDK was set to "${build.java.version}" so make sure that your IDE has an SDK with that name, +or update the Project Settings accordingly.</echo> </target> <!-- ============================ NetBeans =============================== --> diff --git a/res/ide-support/idea/compiler.xml b/res/ide-support/idea/compiler.xml new file mode 100644 index 0000000000..dc73b5a101 --- /dev/null +++ b/res/ide-support/idea/compiler.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <excludeFromCompile> + <!-- + <directory url="file://$PROJECT_DIR$/java/org/apache/tomcat/util/openssl" includeSubdirectories="true" /> + <directory url="file://$PROJECT_DIR$/java/org/apache/tomcat/util/net/openssl/panama" includeSubdirectories="true" /> + --> + </excludeFromCompile> + <annotationProcessing> + <profile default="true" name="Default" enabled="true" /> + </annotationProcessing> + </component> +</project> \ No newline at end of file diff --git a/res/ide-support/idea/tomcat.iml b/res/ide-support/idea/tomcat.iml index 904c85171c..c6112c6e86 100644 --- a/res/ide-support/idea/tomcat.iml +++ b/res/ide-support/idea/tomcat.iml @@ -120,5 +120,15 @@ </library> </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="file://$MODULE_DIR$/lib" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + <jarDirectory url="file://$MODULE_DIR$/lib" recursive="true" /> + </library> + </orderEntry> </component> </module> diff --git a/res/ide-support/idea/workspace.xml b/res/ide-support/idea/workspace.xml new file mode 100644 index 0000000000..761caf13ad --- /dev/null +++ b/res/ide-support/idea/workspace.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Git.Settings"> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> + </component> + <component name="RunManager"> + <configuration name="Tomcat" type="Application" factoryName="Application"> + <option name="ALTERNATIVE_JRE_PATH" value="@BUILD_JAVA_VERSION@" /> + <option name="MAIN_CLASS_NAME" value="org.apache.catalina.startup.Bootstrap" /> + <module name="tomcat" /> + <option name="VM_PARAMETERS" value="" /> + <option name="WORKING_DIRECTORY" value="@OUTPUT_DIR@/build" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + </component> +</project> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org