Skip to content

Commit

Permalink
Fixed Eclipse support - missing src.dir and runpath properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Oct 27, 2015
1 parent f230570 commit bf6e5e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CN1CSSCompiler/src/com/codename1/ui/css/CN1CSSCompileTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class CN1CSSCompileTask extends Task {
public void execute() throws BuildException {

String srcDirPath = getProject().getProperty("src.dir");
if (srcDirPath == null || "".equals(srcDirPath)) {
srcDirPath = "src";
}

File cssDir = new File(getProject().getBaseDir(), "css");
if (!cssDir.exists()) {
Expand All @@ -47,7 +50,12 @@ public void execute() throws BuildException {

File srcDir = new File(getProject().getBaseDir(), srcDirPath);
//System.out.println(getProject().getProperties());
String[] classPath = getProject().getProperty("run.classpath").split(":");

String runClasspath = getProject().getProperty("run.classpath");
if (runClasspath == null || "".equals(runClasspath)) {
runClasspath = "JavaSE.jar";
}
String[] classPath = runClasspath.split(":");
String javaSEJarPath = null;
for (String path : classPath) {
if (path.endsWith("JavaSE.jar")) {
Expand Down
Binary file modified cn1-css-demo/lib/cn1css-ant-task.jar
Binary file not shown.

0 comments on commit bf6e5e0

Please sign in to comment.