Author: nbelaevski
Date: 2009-03-16 14:28:25 -0400 (Mon, 16 Mar 2009)
New Revision: 12971
Modified:
trunk/cdk/maven-javascript-plugin/src/main/java/net/sf/alchim/mojo/yuicompressor/Aggregation.java
Log:
maven-javascript-plugin modified: handling for aggregation/insertSemicolon parameter
added
Modified:
trunk/cdk/maven-javascript-plugin/src/main/java/net/sf/alchim/mojo/yuicompressor/Aggregation.java
===================================================================
---
trunk/cdk/maven-javascript-plugin/src/main/java/net/sf/alchim/mojo/yuicompressor/Aggregation.java 2009-03-16
17:33:05 UTC (rev 12970)
+++
trunk/cdk/maven-javascript-plugin/src/main/java/net/sf/alchim/mojo/yuicompressor/Aggregation.java 2009-03-16
18:28:25 UTC (rev 12971)
@@ -37,7 +37,8 @@
public String[] excludes;
public boolean removeIncluded = false;
public boolean insertNewLine = false;
-
+ public boolean insertSemicolon = false;
+
public void run(File outputDirectory) throws Exception {
if(null == sourceDirectory){
sourceDirectory = outputDirectory;
@@ -50,6 +51,9 @@
FileInputStream in = new FileInputStream(file);
try {
IOUtil.copy(in, out);
+ if (insertSemicolon) {
+ out.write(';');
+ }
if (insertNewLine) {
out.write('\n');
}