Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2018-02-06 12:52:25 +0000
committerMarvin Mueller2018-02-06 12:56:56 +0000
commit6744c8d8d1d22ecd7c7e99b426ca0b7bbe06cb2b (patch)
tree55ad0d3966cba9fa0400fe75d76f84696f096b02 /org.eclipse.jubula.documentation
parent114c73df5bd4af6805480b95992fe9d59d4269de (diff)
downloadorg.eclipse.jubula.core-6744c8d8d1d22ecd7c7e99b426ca0b7bbe06cb2b.tar.gz
org.eclipse.jubula.core-6744c8d8d1d22ecd7c7e99b426ca0b7bbe06cb2b.tar.xz
org.eclipse.jubula.core-6744c8d8d1d22ecd7c7e99b426ca0b7bbe06cb2b.zip
Fix Problem with html image check
Diffstat (limited to 'org.eclipse.jubula.documentation')
-rw-r--r--org.eclipse.jubula.documentation/buildScript.xml6
-rw-r--r--org.eclipse.jubula.documentation/lib/HtmlImageLister/HtmlImageLister.java5
2 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.jubula.documentation/buildScript.xml b/org.eclipse.jubula.documentation/buildScript.xml
index c986df962..19c1be363 100644
--- a/org.eclipse.jubula.documentation/buildScript.xml
+++ b/org.eclipse.jubula.documentation/buildScript.xml
@@ -379,10 +379,12 @@
</target>
<target name="checkImages">
- <java jar="HtmlImageLister.jar" outputProperty="imageList" failonerror="true" fork="true" newenvironment="true">
+ <java jar="HtmlImageLister.jar" outputProperty="imageList" failonerror="true" fork="true">
<arg value="${basedir}/${dir}/en/build/${output}"/>
</java>
-
+ <loadfile property="imageList"
+ srcFile="imageList.txt"/>
+ <delete file="imageList.txt" failonerror="false"></delete>
<filelist id="files" dir="./${dir}/en/docbook" files="${imageList}" />
<restrict id="missing.files">
diff --git a/org.eclipse.jubula.documentation/lib/HtmlImageLister/HtmlImageLister.java b/org.eclipse.jubula.documentation/lib/HtmlImageLister/HtmlImageLister.java
index 691231a27..86c973117 100644
--- a/org.eclipse.jubula.documentation/lib/HtmlImageLister/HtmlImageLister.java
+++ b/org.eclipse.jubula.documentation/lib/HtmlImageLister/HtmlImageLister.java
@@ -7,6 +7,7 @@
*/
import java.io.File;
+import java.io.PrintWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
@@ -52,10 +53,12 @@ public class HtmlImageLister {
imageSet.add((f.getParentFile() + "/").concat(el.attr("src")));
}
}
-
+ PrintWriter out = new PrintWriter("imageList.txt");
for(String s : imageSet) {
+ out.println(s);
System.out.println(s);
}
+ out.close();
} catch (IOException e) {
e.printStackTrace();
}

Back to the top