@@ -0,0 +1,2503 @@
+package com.github.manouti.normalize;%0A%0A/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Aimport java.io.InputStream;%0Aimport java.util.ArrayList;%0Aimport java.util.Date;%0Aimport java.util.List;%0Aimport java.util.StringTokenizer;%0Aimport java.util.jar.JarEntry;%0Aimport java.util.jar.JarFile;%0Aimport java.util.jar.JarOutputStream;%0Aimport java.util.regex.Pattern;%0A%0Aimport org.apache.maven.plugin.MojoExecutionException;%0Aimport org.codehaus.plexus.util.IOUtil;%0A%0Apublic class PomPropertiesTransformer %7B%0A%09private static Pattern commentPattern = Pattern.compile(%22%5E#.*$%22);%0A%0A%09public void normalizePropertiesFile(JarOutputStream jos, JarFile jar, JarEntry entry, Date timestamp) throws MojoExecutionException %7B%0A%09%09InputStream inputStream = null;%0A%09%09try %7B%0A%09%09%09inputStream = jar.getInputStream(entry);%0A%09%09%09String content = IOUtil.toString(inputStream);%0A%09%09%09List%3CString%3E lines = new ArrayList%3CString%3E();%0A            StringTokenizer stringTokenizer = new StringTokenizer(content, System.getProperty(%22line.separator%22));%0A            while (stringTokenizer.hasMoreTokens()) %7B%0A            %09String line = stringTokenizer.nextToken();%0A            %09if(!commentPattern.matcher(line).matches()) %7B%0A            %09%09lines.add(line);%0A            %09%7D%0A            %7D%0A%0A            StringBuilder sb = new StringBuilder();%0A            for(String line : lines) %7B%0A            %09sb.append(line);%0A            %09sb.append(System.getProperty(%22line.separator%22));%0A            %7D%0A%0A%09%09%09JarEntry newEntry = new JarEntry(entry.getName()) ;%0A%09%09%09newEntry.setTime(timestamp.getTime());%0A%09%09%09jos.putNextEntry(newEntry);%0A%09%09%09IOUtil.copy(sb.toString(), jos);%0A%09%09%7D catch(Throwable th) %7B%0A%09%09%09throw new MojoExecutionException( %22Error in manifest transformer%22, th );%0A%09%09%7D finally %7B%0A%09%09%09IOUtil.close( inputStream );%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create PomPropertiesTransformer.java