mirror of https://github.com/FreeCol/freecol.git
Update NetBeans project and docs, now that its possible to use source level 1.8 with 8.1
This commit is contained in:
parent
1d940d4206
commit
ea1d06ab63
|
@ -94,20 +94,20 @@
|
|||
</view>
|
||||
<subprojects/>
|
||||
</general-data>
|
||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
|
||||
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/4">
|
||||
<compilation-unit>
|
||||
<package-root>src</package-root>
|
||||
<classpath mode="compile">jars/commons-cli-1.3.1.jar;jars/cortado-0.6.0.jar;jars/jogg-0.0.17.jar;jars/jorbis-0.0.17.jar;jars/miglayout-core-4.2.jar;jars/miglayout-swing-4.2.jar</classpath>
|
||||
<built-to>build</built-to>
|
||||
<built-to>.</built-to>
|
||||
<javadoc-built-to>doc</javadoc-built-to>
|
||||
<source-level>1.5</source-level>
|
||||
<source-level>1.8</source-level>
|
||||
</compilation-unit>
|
||||
<compilation-unit>
|
||||
<package-root>test/src</package-root>
|
||||
<unit-tests/>
|
||||
<classpath mode="compile">test/lib/junit.jar;FreeCol.jar</classpath>
|
||||
<source-level>1.5</source-level>
|
||||
<source-level>1.8</source-level>
|
||||
</compilation-unit>
|
||||
</java-data>
|
||||
<preferences xmlns="http://www.netbeans.org/ns/auxiliary-configuration-preferences/1">
|
||||
|
|
|
@ -283,25 +283,19 @@ and launch the game right away. Enjoy.
|
|||
We have a NetBeans project with updated settings, but it is not at the
|
||||
standard location the IDE expects it at, as the IDE gets slower while a
|
||||
large project, like FreeCol, is open.
|
||||
NetBeans (currently on version 8.0.2) also, for a long time, contains a bug
|
||||
in that it wont read or write the editor setting for the Java version, if it
|
||||
was correctly set to 1.8.
|
||||
It is therefore set to 1.5 in the project file and causes the Editor to show a
|
||||
huge amount of wrong compatibility warnings, though compilation is not affected.
|
||||
|
||||
You have the option of just clicking on ``build.xml'' in ``Files'' pane and
|
||||
starting the build commands easily through the ``Navigator'' pane inside
|
||||
the IDE that way.
|
||||
|
||||
If you opt for using the provided project, copy the ``FreeCol/config/nbproject''
|
||||
folder to ``FreeCol/nbproject'' once. Without this step it will not work!
|
||||
Open the project inside NetBeans once, it will remember this, as long as
|
||||
If you opt for using the provided project, it is recommended to use NetBeans 8.1
|
||||
(or newer), because previous versions contained a bug in that it wont read or
|
||||
write the editor setting for the Java version, if it was correctly set to 1.8
|
||||
(though it seems version 8.0.2 can read the project file after updating it with 8.1).
|
||||
Just copy the ``FreeCol/config/nbproject'' folder to ``FreeCol/nbproject'' once.
|
||||
Without this step it will not work!
|
||||
Open the project inside NetBeans once; it will remember this, as long as
|
||||
you do not close the project manually.
|
||||
Each time you open the IDE right click on the ``FreeCol'' project name inside
|
||||
the ``Projects'' panel, choose ``Properties'', then from the opened dialog choose
|
||||
``Java Sources'' on the tree part, then change the ``Source Level'' setting to
|
||||
``JDK 1.8'' and click the ``OK'' button. This is necessary every time, until
|
||||
the NetBeans bug got fixed!
|
||||
|
||||
\hypertarget{Creating a new NetBeans project}{\subsection{Creating a new NetBeans project (thanks to ``xsainnz'')}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue