Fehlerbehebung
Wichtig
#25958
Ant-Targets in Eclipse-Workspace scheitert mit "The linked resource '/com.top_logic.basic.core/src' in project '.org.eclipse.jdt.core.external.folders' does not exist
BUILD FAILED /home/bhu/devel/workspace-toplogic-head1/com.top_logic/bin/build.xml:13: The following error occurred while executing this line: /home/bhu/devel/workspace-toplogic-head1/tl-build/bin/base-build.xml:242: The following error occurred while executing this line: /home/bhu/devel/workspace-toplogic-head1/tl-build/bin/macros.xml:344: org.ant4eclipse.lib.core.exception.Ant4EclipseException: The linked resource '/com.top_logic.basic.core/src' in project '.org.eclipse.jdt.core.external.folders' does not exist.
Problem scheint zu sein, dass Eclipse mit der Cross-Project-Dependendency tl-build -> com.top_logic.basic.core nicht klarkommt und falsche Einträge in seine Datenstrukturen schreibt.
Workaround
Source-Path /com.top_logic.basic.core/src aus tl-build entfernen und Eclipse neu starten:
#!patch ### Eclipse Workspace Patch 1.0 #P tl-build Index: .classpath =================================================================== --- .classpath (revision 299372) +++ .classpath (working copy) @@ -17,7 +17,7 @@ <classpathentry kind="lib" path="org.apache.ant/lib/ext/asm/asm-5.0.4.jar" sourcepath="org.apache.ant/lib/ext/asm/asm-5.0.4-src.zip"/> <classpathentry kind="lib" path="org.apache.ant/lib/ant-junit.jar" sourcepath="org.apache.ant/lib/apache-ant-1.10.7-src.zip"/> <classpathentry kind="lib" path="template/doclet/doclet.jar"/> - <classpathentry kind="lib" path="org.apache.ant/lib/ext/tl-basic-core.jar" sourcepath="/com.top_logic.basic.core/src"/> + <classpathentry kind="lib" path="org.apache.ant/lib/ext/tl-basic-core.jar" sourcepath="org.apache.ant/lib/ext/tl-basic-core.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> <classpathentry kind="output" path="target/classes"/> </classpath>
U.U. kann es notwendig sein, das .metadata-Verzeichnis des Workspaces zu löschen.
Verbesserung
Die Quellen für tl-basic-core.jar werden ebenfalls nach tl-build kopiert.
Test
Kein Test.