sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/04: Update NetBeans project configuration for specifying a default workspace directory.
Date Thu, 23 Aug 2018 15:10:25 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 4bdd5c4e08eba2854011fa94a14963d1cbc7289d
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Wed Aug 22 18:05:54 2018 +0200

    Update NetBeans project configuration for specifying a default workspace directory.
---
 .gitignore                                        | 18 ++++++++----------
 ide-project/NetBeans/build.xml                    |  7 +++++++
 ide-project/NetBeans/nbproject/project.properties | 15 +++++++++++----
 3 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/.gitignore b/.gitignore
index b6127da..2d5d4d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,28 +1,26 @@
-# All configurations
+ide-project/NetBeans/nbproject/private/
+ide-project/NetBeans/build/
+ide-project/NetBeans/dist/
 ide-project/local-src/
+ide-project/workspace/
 target/
-tmp/
 *.tmp
 *.log
-*.orig
 .svn/
 
-# NetBeans IDE files
-ide-project/NetBeans/build/
-ide-project/NetBeans/dist/
+# Generated by NetBeans IDE
 nbactions.xml
-nbproject
 
-# Eclipse IDE files
+# Generated by Eclipse IDE
 .classpath
 .project
 .settings/
 
-# IntelliJ IDE files
+# Generated by IntelliJ IDE
 *.iml
 *.ipr
 *.iws
 .idea/
 
-# MacOS
+# Generated by MacOS
 .DS_Store
diff --git a/ide-project/NetBeans/build.xml b/ide-project/NetBeans/build.xml
index 56c0b93..3051311 100644
--- a/ide-project/NetBeans/build.xml
+++ b/ide-project/NetBeans/build.xml
@@ -33,7 +33,14 @@
     avoid polluting the directory with dummy files as they appear in NetBeans.
   -->
   <target name="-post-init">
+    <available file="${src.local-src.dir}/.." type="dir" property="src.parent.exists"/>
+    <fail unless="src.parent.exists" message="Can not create &quot;${src.local-src.dir}&quot;
because the parent directory does not exist."/>
+
+    <available file="${work.dir}/.." type="dir" property="wkd.parent.exists"/>
+    <fail unless="wkd.parent.exists" message="Can not create &quot;${work.dir}&quot;
because the parent directory does not exist."/>
+
     <mkdir dir="${src.local-src.dir}"/>
+    <mkdir dir="${work.dir}"/>
   </target>
 
   <!--
diff --git a/ide-project/NetBeans/nbproject/project.properties b/ide-project/NetBeans/nbproject/project.properties
index 160ff9e..7b55c26 100644
--- a/ide-project/NetBeans/nbproject/project.properties
+++ b/ide-project/NetBeans/nbproject/project.properties
@@ -23,6 +23,8 @@ application.title    = Spatial Information System (SIS)
 application.vendor   = Apache
 application.homepage = http://sis.apache.org/
 application.desc     = Apache SIS is a free software, Java language library for developing
geospatial applications.
+work.dir             = ../workspace
+work.dir.to.root     = ../..
 
 #
 # Some global configuration.
@@ -40,11 +42,14 @@ javac.target         = 1.8
 platform.active      = default_platform
 junit.forkmode       = once
 run.jvmargs          = --add-modules java.xml.bind -enableassertions \
-                       -Dorg.apache.sis.test.verbose=true -Dorg.apache.sis.test.extensive=true
+                       -Dorg.apache.sis.test.verbose=true -Dorg.apache.sis.test.extensive=true
\
+                       -Djava.util.logging.config.file=${work.dir.to.root}/src/main/config/logging.properties
+#                      -Djava.security.manager -Djava.security.policy=${work.dir.to.root}/src/main/config/security.policy
\
 #                      -Dderby.drda.startNetworkServer=true -Dderby.drda.portNumber=1527
 
 #
-# Source directories.
+# Source directories. The "project.root" path is relative to "ide-project/NetBeans" directory.
+# Note that "work.dir.to.root" points to the same directory, but from another starting point.
 #
 project.root         = ../..
 src.local-src.dir    = ../local-src
@@ -196,7 +201,9 @@ debug.test.modulepath=\
 
 #
 # Build configuration and destination directories.
+# The "compile.on.save" property must be 'false' for enabling the use of "../build.xml" file.
 #
+compile.on.save                          = false
 javac.compilerargs                       = -Xdoclint:syntax,html,reference,missing/protected,accessibility/protected
 javac.deprecation                        = true
 javac.external.vm                        = false
@@ -248,5 +255,5 @@ mkdist.disabled                          = true
 #
 # Editor
 #
-auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsEnabled=true
-auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
+auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsEnabled = true
+auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile    = nbproject/cfg_hints.xml


Mime
View raw message