Hello,
please be aware that I am neither familiar with using NetBeans nor ant!
Trying to run Ancestris from NetBeans using button "Run Project (Ancestris-12) (F6)" results in error message:
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\build.xml:7: The following error occurred while executing this line:
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\nbproject\build-impl.xml:41: Cannot find NetBeans build harness.
Check that nbplatform.custom.netbeans.dest.dir and nbplatform.custom.harness.dir are defined.
On a developer machine these are normally defined in C:\Users\Andreas\AppData\Roaming\NetBeans\19\build.properties=C:\Users\Andreas\AppData\Roaming\NetBeans\19/build.properties
but for automated builds you should pass these properties to Ant explicitly.
Further details please see below.
Building/running "ancestris.app" results in:
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\ancestris.app\build.xml:7: The following error occurred while executing this line:
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\ancestris.app\nbproject\build-impl.xml:44: Cannot find C:\Users\Andreas\Documents\netbeans_platform_12.5\harness\build.xml imported from C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\ancestris.app\nbproject\build-impl.xml
Building/running "core" throws same messages with "core" instead of "ancestris.app".
Folder C:\Users\Andreas\Documents\netbeans_platform_12.5 does not exist.
Hoping somebody can tell me what I am doing wrong and/or what I have to do.
Thanks and regards
Andreas
Installation details from NetBeans <Help><About>
Product Version: Apache NetBeans IDE 19
Java: 20.0.1; OpenJDK 64-Bit Server VM 20.0.1+9-29
Runtime: OpenJDK Runtime Environment 20.0.1+9-29
System: Windows 10 version 10.0 running on amd64; UTF-8; de_DE (nb)
User directory: C:\Users\Andreas\AppData\Roaming\NetBeans\19
Cache directory: C:\Users\Andreas\AppData\Local\NetBeans\Cache\19
Installation dates (because of the versions)
Java: July 2023
NetBeans: November 2023
Ancestris: November 2023 - via svn according to https://docs.ancestris.org/books/contribution/page/coding with user 'anonymous' and password 'password'
Further details
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\build.xml:7:
<import file="nbproject/build-impl.xml"/>
C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\nbproject\build-impl.xml:41:
<ant antfile="nbproject/platform.xml"/>
C:\Users\Andreas\AppData\Roaming\NetBeans\19\build.properties:
nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
nbplatform.default.netbeans.dest.dir=C:\\ProgAdd\\NetBeans-19\\netbeans
In <View><IDE log> I found:
WARNING [org.netbeans.modules.apisupport.project]: Project in C:\Users\Andreas\Documents\NetBeansProjects\AncestrisCore\core is missing its platform 'custom', switching to default platform