-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change licence from lgpl 2.1 to asl 2
- Loading branch information
Showing
19 changed files
with
3,414 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Tue Jun 24 20:41:30 CEST 2008 | ||
eclipse.preferences.version=1 | ||
encoding//packtag-testsite/src/main/webapp/charsetTestAccent.jsp=UTF-8 | ||
encoding//packtag-testsite/src/main/webapp/js/charsetTestAccent.js=UTF-8 | ||
encoding/<project>=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
2015-02-19 12:34:35,077 ERROR [net.sf.packtag.implementation.JsminPackStrategy] Exception is class net.sf.packtag.implementation.JSMin$UnterminatedRegExpLiteralException | ||
net.sf.packtag.implementation.JSMin$UnterminatedRegExpLiteralException | ||
at net.sf.packtag.implementation.JSMin.action(JSMin.java:226) | ||
at net.sf.packtag.implementation.JSMin.jsmin(JSMin.java:306) | ||
at net.sf.packtag.implementation.JsminPackStrategy.pack(JsminPackStrategy.java:53) | ||
at net.sf.packtag.tag.PackTag.reloadSingleResource(PackTag.java:332) | ||
at net.sf.packtag.tag.PackTag.handleSingleResourceDelegate(PackTag.java:163) | ||
at net.sf.packtag.tag.PackTag.handleSingleResource(PackTag.java:135) | ||
at net.sf.packtag.tag.PackTag.handleCombinedResource(PackTag.java:227) | ||
at net.sf.packtag.tag.PackTag.doEndTag(PackTag.java:103) | ||
at org.apache.jsp.github_002d5_jsp._jspx_meth_pack_005fscript_005f0(github_002d5_jsp.java:142) | ||
at org.apache.jsp.github_002d5_jsp._jspService(github_002d5_jsp.java:86) | ||
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) | ||
|
||
http://compressorrater.thruhere.net/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0"?> | ||
Thanks T<?xml version="1.0"?> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
packtag-core/src/test/java/net/sf/packtag/bugs/Github5.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Project pack:tag >> http://packtag.sf.net | ||
* | ||
* This software is published under the terms of the LGPL | ||
* License version 2.1, a copy of which has been included with this | ||
* distribution in the 'lgpl.txt' file. | ||
* | ||
* Creation date: Feb 20, 2015 - 8:38:25 PM | ||
* Last author: $Author: danielgalan $ | ||
* Last modified: $Date:$ | ||
* Revision: $Revision:$ | ||
* | ||
* $Log:$ | ||
*/ | ||
package net.sf.packtag.bugs; | ||
|
||
import java.io.File; | ||
import java.io.FileInputStream; | ||
import java.io.FileReader; | ||
import java.io.StringWriter; | ||
import java.nio.charset.Charset; | ||
|
||
import junit.framework.TestCase; | ||
import net.sf.packtag.implementation.JSMin; | ||
import net.sf.packtag.implementation.JsminPackStrategy; | ||
|
||
|
||
|
||
/** | ||
* Test for Github bug #5 - https://github.com/galan/packtag/issues/5 | ||
* | ||
* @author daniel | ||
*/ | ||
public class Github5 extends TestCase { | ||
|
||
public void testBug() throws Exception { | ||
FileReader reader = new FileReader(new File("/home/daniel/Dropbox/dev/git/packtag/packtag-testsite/src/main/webapp/js/moment-2.9.0.min.js")); | ||
StringWriter sw = new StringWriter(); | ||
JSMin min = new JSMin(reader, sw); | ||
min.jsmin(); | ||
assertEquals(sw.toString().trim().length(), 24183); | ||
} | ||
|
||
|
||
public void testStrategy() throws Exception { | ||
FileInputStream fis = new FileInputStream(new File("/home/daniel/Dropbox/dev/git/packtag/packtag-testsite/src/main/webapp/js/moment-2.9.0.min.js")); | ||
JsminPackStrategy strategy = new JsminPackStrategy(); | ||
String pack = strategy.pack(fis, Charset.forName("UTF-8"), null); | ||
assertEquals(pack.length(), 24183); | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
packtag-testsite/src/main/webapp/WEB-INF/classes/log4j.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
|
||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | ||
|
||
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c] %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<root> | ||
<priority value="INFO" /> | ||
<appender-ref ref="console" /> | ||
</root> | ||
|
||
</log4j:configuration> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> | ||
<%-- <%@ taglib uri="http://www.galan.de/projects/packtag" prefix="pack" %> --%> | ||
<%@ taglib uri="http://packtag.sf.net" prefix="pack" %> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | ||
<title>github issue #5</title> | ||
|
||
|
||
<pack:script minify="false"> | ||
<src>js/moment-2.9.0.min.js</src> | ||
</pack:script> | ||
|
||
</head> | ||
|
||
<body> | ||
<a href="https://github.com/galan/packtag/issues/5">github #5</a><br/> | ||
<p id="time">?</p> | ||
<script> | ||
document.getElementById('time').innerHTML = moment("20111031", "YYYYMMDD").fromNow(); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.