branaway/Japid — Issue #39: compile error when _layouts or _tags has no java class defined
Author: greenlaw110
Created: 2011-11-17 23:10:30+00:00
State: open

When using Japid in the standonline mode, call japid gen will generate default directory structure including an empty _layouts and _tags folder. The generated java code has the following 2 import statements:

import japidviews ._tags.*;
import japidviews ._layouts.*;

if I don't have anything put into the _layouts and _tags folder, the compiler will complaint that

compile:
[javac] Compiling 1 source file to T:\tmp\template-engine-benchmarks\java\classes
[javac] T:\tmp\template-engine-benchmarks\java\src\japidviews\stocks.java:6: package japidviews._tags does not exist
[javac] import japidviews._tags.*;
[javac] ^
[javac] T:\tmp\template-engine-benchmarks\java\src\japidviews\stocks.java:7: package japidviews._layouts does not exist
[javac] import japidviews._layouts.*;
[javac] ^
[javac] 2 errors