Luis Goes created SOLR-10369: -------------------------------- Summary: Solr.cmd script typo in delete section Key: SOLR-10369 URL: https://issues.apache.org/jira/browse/SOLR-10369 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Components: scripts and tools Affects Versions: 6.4.2 Environment: MS Windows Server 2012 R2 Solr 6.4.2 Reporter: Luis Goes Priority: Minor
Behavior: Open a command line, go to solr bin directory and execute the following command: solr.cmd delete -collection gettingstarted A messagem appears "Usage: java [-options] class [args...]..." meaning there's a syntatic error. Problem: In line 1380 of solr.cmd the char "^" is supposed to act as a line break, but since it's not the last char in that line (a white space is) windows shell script doesn't concatenate the lines that follow, rendering the java command incomplete. "%JAVA%" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir="%SOLR_TIP%" ^ -Dlog4j.configuration="file:%DEFAULT_SERVER_DIR%\scripts\cloud-scripts\log4j.properties" ^ -classpath "%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*" ^ org.apache.solr.util.SolrCLI delete -name !DELETE_NAME! -deleteConfig !DELETE_CONFIG! ^ -solrUrl !SOLR_URL_SCHEME!://%SOLR_TOOL_HOST%:!DELETE_PORT!/solr Proposed correction: remove the white space after the "^" char in line 1380 -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org