Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Building source code with ant #10

Closed
JesusM opened this issue Jan 23, 2013 · 3 comments
Closed

Building source code with ant #10

JesusM opened this issue Jan 23, 2013 · 3 comments

Comments

@JesusM
Copy link
Contributor

JesusM commented Jan 23, 2013

Sorry for all my issues, but when I try to build the sourcecode with the news instructions with ant I can't build dependencies. All libraries folders are empty. This is muy terminal output:
jesus@jesus-precision-workstation-670:~/WLANAudit-Android/WLANAudit$ ant
Buildfile: /home/jesus/WLANAudit-Android/WLANAudit/build.xml

help:
[echo] Android Ant Build. Available targets:
[echo] help: Displays this help.
[echo] clean: Removes output files created by other targets.
[echo] The 'all' target can be used to clean dependencies
[echo](tested projects and libraries)at the same time
[echo] using: 'ant all clean'
[echo] debug: Builds the application and signs it with a debug key.
[echo] The 'nodeps' target can be used to only build the
[echo] current project and ignore the libraries using:
[echo] 'ant nodeps debug'
[echo] release: Builds the application. The generated apk file must be
[echo] signed before it is published.
[echo] The 'nodeps' target can be used to only build the
[echo] current project and ignore the libraries using:
[echo] 'ant nodeps release'
[echo] instrument:Builds an instrumented package and signs it with a
[echo] debug key.
[echo] test: Runs the tests. Project must be a test project and
[echo] must have been built. Typical usage would be:
[echo] ant [emma] debug install test
[echo] emma: Transiently enables code coverage for subsequent
[echo] targets.
[echo] install: Installs the newly build package. Must either be used
[echo] in conjunction with a build target (debug/release/
[echo] instrument) or with the proper suffix indicating
[echo] which package to install (see below).
[echo] If the application was previously installed, the
[echo] application is reinstalled if the signature matches.
[echo] installd: Installs (only) the debug package.
[echo] installr: Installs (only) the release package.
[echo] installi: Installs (only) the instrumented package.
[echo] installt: Installs (only) the test and tested packages (unless
[echo] nodeps is used as well.
[echo] uninstall: Uninstalls the application from a running emulator or
[echo] device. Also uninstall tested package if applicable
[echo] unless 'nodeps' is used as well.

BUILD SUCCESSFUL
Total time: 0 seconds

Ant create all libraries folders but all are empty.

@RobertoEstrada
Copy link
Owner

You have to call ant from the project root directory, in your case ~/WLANAudit-Android

I also suggest you to clean you eclipse workspace and reimport the projects from a fresh clone/fork of this repo to avoid path issues and reappearing of deleted files and to use topic branches in your fork to submit pull requests. I've set up a continuous integration process for this workflow.

Thank you!

@JesusM
Copy link
Contributor Author

JesusM commented Jan 23, 2013

If y run ant at the WlanAudit root directory, I see:
~/WLANAudit-Android$ ant
Buildfile: build.xml does not exist!
Build failed

Ok ok, for now i'm only trying to get and buil the sourcecode.

EDIT: problem solve, I was at the wrong branch. To solve it, I run git checkout WLANAudit3 between clone and run ant.

@RobertoEstrada
Copy link
Owner

It's due to an errata in the README. To fix that you only need to switch to the WLANAudit3 branch using

$ git checkout WLANAudit3

Fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants