Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
maven-embedder-3.5.4.jar - Maven Embedder Module
maven-embedder-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Embedder module.
Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 2018-06-17 19:34 98372 lib\maven-embedder-3.5.4.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/cli/CleanArgument.java
package org.apache.maven.cli; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.util.ArrayList; import java.util.List; /** * CleanArgument */ public class CleanArgument { public static String[] cleanArgs( String[] args ) { List<String> cleaned = new ArrayList<>(); StringBuilder currentArg = null; for ( String arg : args ) { boolean addedToBuffer = false; if ( arg.startsWith( "\"" ) ) { // if we're in the process of building up another arg, push it and start over. // this is for the case: "-Dfoo=bar "-Dfoo2=bar two" (note the first unterminated quote) if ( currentArg != null ) { cleaned.add( currentArg.toString() ); } // start building an argument here. currentArg = new StringBuilder( arg.substring( 1 ) ); addedToBuffer = true; } // this has to be a separate "if" statement, to capture the case of: "-Dfoo=bar" if ( addedToBuffer && arg.endsWith( "\"" ) ) { String cleanArgPart = arg.substring( 0, arg.length() - 1 ); // if we're building an argument, keep doing so. if ( currentArg != null ) { // if this is the case of "-Dfoo=bar", then we need to adjust the buffer. if ( addedToBuffer ) { currentArg.setLength( currentArg.length() - 1 ); } // otherwise, we trim the trailing " and append to the buffer. else { // TODO introducing a space here...not sure what else to do but collapse whitespace currentArg.append( ' ' ).append( cleanArgPart ); } cleaned.add( currentArg.toString() ); } else { cleaned.add( cleanArgPart ); } currentArg = null; addedToBuffer = false; continue; } // if we haven't added this arg to the buffer, and we ARE building an argument // buffer, then append it with a preceding space...again, not sure what else to // do other than collapse whitespace. // NOTE: The case of a trailing quote is handled by nullifying the arg buffer. if ( !addedToBuffer ) { if ( currentArg != null ) { currentArg.append( ' ' ).append( arg ); } else { cleaned.add( arg ); } } } if ( currentArg != null ) { cleaned.add( currentArg.toString() ); } int cleanedSz = cleaned.size(); String[] cleanArgs; if ( cleanedSz == 0 ) { cleanArgs = args; } else { cleanArgs = cleaned.toArray( new String[cleanedSz] ); } return cleanArgs; } }
⏎ org/apache/maven/cli/CleanArgument.java
Or download all of them as a single archive file:
File name: maven-embedder-3.5.4-src.zip File size: 52996 bytes Release date: 2018-06-17 Download
⇒ maven-settings-builder-3.5.4.jar - Maven Settings Builder Module
⇐ maven-compat-3.5.4.jar - Maven Compact Module
2023-06-19, ∼5352🔥, 0💬
Popular Posts:
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...