dbflute / dbflute-core

DBFlute core libraries for Java8
http://dbflute.seasar.org/
25 stars 18 forks source link

dynamically change working directory. #98

Closed p1us2er0 closed 2 years ago

jflute commented 6 years ago

Thanks, I will confirm modification later

jflute commented 6 years ago

Thank you for your adding comment. I will check programming mistakes visually first. And later I write test of CraftDiff and others.

jflute commented 6 years ago

Now making tests related to this issue:

https://github.com/dbflute-test/dbflute-test-active-hangar/blob/master/src/test/java/org/docksidestage/hangar/dbflute/whitebox/world/diffworld/WxDiffworldTest.java

jflute commented 6 years ago

I found the new pattern:

DfLanguageDependencyJava:

public String getGenerateOutputDirectory() {
    return "../" + getMainProgramDirectory();
}

public String getResourceOutputDirectory() {
    return "../resources";
}

We needs to come up with some ideas...

jflute commented 6 years ago

How about the following specification?

workDir: null (as normal process)

DfEngineWorkDir.toPath("./sea/land"); // ./sea/land (no change)
DfEngineWorkDir.toPath("../sea/land"); // ../sea/land (no change)

workDir: /maihama

DfEngineWorkDir.toPath("./sea/land"); // /maihama/./sea/land (or /maihama/sea/land)
DfEngineWorkDir.toPath("../sea/land"); // /maihama/../sea/land (or /sea/land *difficult...)
p1us2er0 commented 6 years ago

How about the following specification?

I tried.

jflute commented 2 years ago

managed by the following issue: https://github.com/dbflute/dbflute-core/issues/150