Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on ant debug #132

Closed
surjit opened this issue Sep 26, 2013 · 3 comments
Closed

error on ant debug #132

surjit opened this issue Sep 26, 2013 · 3 comments

Comments

@surjit
Copy link

surjit commented Sep 26, 2013

C:\Users\Happ\workspace\wp-android\custom_rules.xml:8: Execute failed: java.io.I
OException: Cannot run program ".\wpconfig": CreateProcess error=193, %1 is not
a valid Win32 application
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Jav
a13CommandLauncher.java:41)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
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 is not a valid Win32
application
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 24 more

Total time: 0 seconds

@thumbone
Copy link

custom_rules.xml:
<exec executable="D:/RailsInstaller/Ruby1.9.3/bin/ruby.exe">
<arg value="wpconfig" />
<arg value="${source.absolute.dir}/org/wordpress/android/Config.java" />
</exec>
on win32 platform

@thumbone
Copy link

But I wonder, you can add /org/wordpress/android/Config.java manually,
and get rid of <exec ...> in custom_rules.xml.

Config.java:

package org.wordpress.android;

class Config {

protected static final String OAUTH_APP_ID="wordpress";

protected static final String OAUTH_APP_SECRET="wordpress";

protected static final String DB_SECRET="wordpress";

protected static final String OAUTH_REDIRECT_URI="http://wordpress.org";

protected static final String GCM_ID="wordpress";

}

@roundhill
Copy link
Contributor

The project has switched to Gradle. There's now instructions in the Readme that explain how to compile:

https://github.com/wordpress-mobile/WordPress-Android/blob/develop/readme.md

bummytime added a commit that referenced this issue May 1, 2015
…board-old-api

Issue #132: format bar buttons hide keyboard
wzieba pushed a commit that referenced this issue Sep 27, 2024
…ial-manager-passkey-fetching

Introduce credential manager passkey fetching
wzieba pushed a commit that referenced this issue Oct 21, 2024
…ial-manager-passkey-fetching

Introduce credential manager passkey fetching
wzieba pushed a commit that referenced this issue Oct 21, 2024
…ial-manager-passkey-fetching

Introduce credential manager passkey fetching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants