@@ -0,0 +1,2765 @@
+/*%0A * Copyright (C) 2012 - 2012 NHN Corporation%0A * All rights reserved.%0A *%0A * This file is part of The nGrinder software distribution. Refer to%0A * the file LICENSE which is part of The nGrinder distribution for%0A * licensing details. The nGrinder distribution is available on the%0A * Internet at http://nhnopensource.org/ngrinder%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS%0A * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE%0A * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,%0A * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES%0A * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR%0A * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)%0A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,%0A * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED%0A * OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0Apackage net.grinder.util;%0A%0Aimport static org.ngrinder.common.util.Preconditions.checkNotNull;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.apache.commons.io.FilenameUtils;%0Aimport org.apache.commons.lang.StringUtils;%0Aimport org.slf4j.Logger;%0A%0A/**%0A * Grinder classpath optimization class%0A * %0A * @author JunHo Yoon%0A * @since 3.0%0A */%0Apublic class GrinderClassPathUtils %7B%0A%09/**%0A%09 * Construct classPath for grinder from existing classpath string%0A%09 * %0A%09 * @param classPath%0A%09 *            classpath string%0A%09 * @param m_logger%0A%09 *            logger%0A%09 * @return classpath optimized for grinder.%0A%09 */%0A%09public static String filterClassPath(String classPath, Logger m_logger) %7B%0A%09%09List%3CString%3E classPathList = new ArrayList%3CString%3E();%0A%09%09for (String eachClassPath : checkNotNull(classPath).split(File.pathSeparator)) %7B%0A%09%09%09String name = FilenameUtils.getName(eachClassPath);%0A%09%09%09// Exclude not necessary jars..%0A%09%09%09if (%22jar%22.equals(FilenameUtils.getExtension(name))%0A%09%09%09%09%09%09%09&& (name.contains(%22ngrinder%22) %7C%7C eachClassPath.contains(%22spring%22))) %7B%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09// Include necessary jars..%0A%09%09%09m_logger.debug(%22Each System Class Path in total is %22 + eachClassPath);%0A%09%09%09if (name.contains(%22grinder%22) %7C%7C name.contains(%22asm%22) %7C%7C name.contains(%22picocontainer%22)%0A%09%09%09%09%09%09%09%7C%7C name.contains(%22jython%22) %7C%7C name.contains(%22slf4j-api%22)%0A%09%09%09%09%09%09%09%7C%7C name.contains(%22logback%22) %7C%7C name.contains(%22jsr173%22)%0A%09%09%09%09%09%09%09%7C%7C name.contains(%22xmlbeans%22) %7C%7C name.contains(%22stax-api%22)) %7B%0A%09%09%09%09m_logger.debug(%22classpath :%22 + eachClassPath);%0A%09%09%09%09classPathList.add(eachClassPath);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return StringUtils.join(classPathList, File.pathSeparator);%0A%09%7D%0A%7D%0A

Develop ScriptValidation..