Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Little bit of cleanup to make sure everything builds and tests pass

  • Loading branch information...
commit 2e168c0df29e3c1237f2732c8e4a40a767503a22 1 parent 6111b05
@nzakas authored
View
3  ant.properties
@@ -8,13 +8,14 @@ res.dir = res
#Lib jars
jargs.jar = jargs-1.0.jar
junit.jar = junit-4.1.jar
+ant.jar = ant.jar
#Global properties
class.version = 1.5
#CSSEmbed properties
cssembed.name = cssembed
-cssembed.version = 0.3.6
+cssembed.version = 0.4.0
cssembed.jar = ${cssembed.name}-${cssembed.version}.jar
cssembed.main = net.nczonline.web.cssembed.CSSEmbed
View
2  build.xml
@@ -23,6 +23,7 @@
source="${class.version}"
target="${class.version}">
<classpath>
+ <pathelement location="${lib.dir}/${ant.jar}"/>
<pathelement location="${lib.dir}/${jargs.jar}"/>
<pathelement location="${lib.dir}/${datauri.jar}"/>
</classpath>
@@ -39,6 +40,7 @@
source="${class.version}"
target="${class.version}">
<classpath>
+ <pathelement location="${lib.dir}/${ant.jar}"/>
<pathelement location="${lib.dir}/${jargs.jar}"/>
<pathelement location="${lib.dir}/${junit.jar}"/>
<pathelement location="${build.dir}/classes"/>
View
2  src/net/nczonline/web/cssembed/CSSEmbedTask.java
@@ -28,9 +28,7 @@
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.types.Mapper;
-import org.apache.tools.ant.types.Resource;
import org.apache.tools.ant.types.ResourceCollection;
-import org.apache.tools.ant.types.resources.FileProvider;
import org.apache.tools.ant.types.resources.FileResource;
import org.apache.tools.ant.util.FileNameMapper;
View
2  tests/net/nczonline/web/cssembed/CSSURLEmbedderTest.java
@@ -196,7 +196,7 @@ public void testAbsoluteLocalFileOverMaxImageSize() throws IOException {
@Test
public void testReadFromAndWriteToSameFile() throws IOException {
- String filename = this.getClass().getClassLoader().getResource("samefiletest.css").getPath().replace("%20", " ");
+ String filename = CSSURLEmbedderTest.class.getResource("samefiletest.css").getPath().replace("%20", " ");
File file = new File(filename);
Reader in = new InputStreamReader(new FileInputStream(file));
Please sign in to comment.
Something went wrong with that request. Please try again.