[
https://issues.apache.org/jira/browse/SOLR-10369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl resolved SOLR-10369.
--------------------------------
Resolution: Fixed
Tested on windows 10. Precommit passes. Thanks Luis!
> 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
> Assignee: Jan Høydahl
> Priority: Minor
> Fix For: master (7.0), 6.6, 6.5.1
>
> Attachments: SOLR-10369.patch
>
>
> 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
> Same problem also exists in lines 1148 and 1188.
> Proposed correction: remove the white space after the "^" char in lines 1148,
> 1188 and 1380.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]