[
https://issues.apache.org/jira/browse/SOLR-6926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287187#comment-14287187
]
Uwe Schindler commented on SOLR-6926:
-------------------------------------
In addition, "ant run-example" is broken on windows, which makes development
harder for me:
{noformat}
run-example:
BUILD FAILED
C:\Users\Uwe Schindler\Projects\lucene\trunk-lusolr1\solr\build.xml:66: Execute
failed: java.io.IOException: Cannot run program "C:\Users\Uwe
Schindler\Projects\lucene\trunk-lusolr1\solr\bin\solr": CreateProcess
error=193, %1 ist keine zulässige Win32-Anwendung
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=193, %1 ist keine zulõssige
Win32-Anwendung
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 23 more
Total time: 4 minutes 0 seconds
{noformat}
I think the problem is that the ant task should use "solr.cmd" if it detects
windows.
> "ant example" makes no sense anymore - should be "ant server" (or refactored
> into some other compilation realted target)
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-6926
> URL: https://issues.apache.org/jira/browse/SOLR-6926
> Project: Solr
> Issue Type: Improvement
> Reporter: Hoss Man
> Assignee: Timothy Potter
>
> (filing as followup to a chat i had with tim offline the other day)
> the ant target "ant example" doesn't really make any sense anymore ... that
> name was created way, way, back when "ant compile" built up the dist/solr.war
> file that people were expected to "install" and "ant example" took care of
> copying that war file into the example/jetty directory
> these days, it should probably be named something like "ant server" or
> refactored inside an existing task like "ant compile"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]