Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Debug cleanup

  • Loading branch information...
commit a550bcd4c0f938088f55fca5d2b854a63bde1f59 1 parent 1c0540c
@remear authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/java/com/unfiniti/pipeline/PrecompileAssets.java
View
4 src/java/com/unfiniti/pipeline/PrecompileAssets.java
@@ -63,12 +63,10 @@ public void execute()
String relativePathToFile = filePath.substring(filePath.lastIndexOf("assets") + 7, filePath.lastIndexOf(fileName));
//System.out.println(relativePathToFile);
String hash = SHASum(file);
-
String[] fileNameAttributes = fileName.split("\\.(?=[^\\.]+$)");
String processedFileName = fileNameAttributes[0] + "-" + hash + "." + fileNameAttributes[1];
-
File processedFileHandle = new File(currentDir + processedFileName);
- System.out.println(fileNameAttributes[1]);
+
if (optimizeAssets && (fileNameAttributes[1].equals("css") || fileNameAttributes[1].equals("js")))
{
try
Please sign in to comment.
Something went wrong with that request. Please try again.