Open jmini opened 1 year ago
For me this is related to how the resource is linked into the project.
In the .project
file:
<linkedResources>
<link>
<name>src</name>
<type>2</type>
<location>/home/jbr/tmp/tmp1</location>
</link>
</linkedResources>
The folder containing the file is linked.
For me it would be more correct to link only a specific file:
<linkedResources>
<link>
<name>src/cli.java</name>
<type>1</type>
<location>/home/jbr/tmp/tmp1/cli.java</location>
</link>
</linkedResources>
Often I have a jbang script in a non-empty folder (like at the root of a git repo where there is plenty of other projects).
For me the idea to import a Jbang script a a dedicated Eclipse project is to work only on that script.
It used to work like that (1 project / script) but I must have somehow broken it in Eclipse when implementing 1 project / folder
In a folder
~/tmp/tmp1
create 2 files:cli.java
log.java
Sources
cli.java: ```java ///usr/bin/env jbang "$0" "$@" ; exit $? //DEPS info.picocli:picocli:4.6.3 import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.Parameters; import java.util.concurrent.Callable; @Command(name = "cli", mixinStandardHelpOptions = true, version = "cli 0.1", description = "cli made with jbang") class cli implements CallableImport the
cli.java
script as Jbang project into Eclipse.cli.java
project.cli.java
file