Re: [android-developers] Don't mix Ant and Eclipse!

2012-12-06 Thread moose
Kostya, could you give us some details on how you did that?

I run ant and eclipse side by side and run into issues where I need to do 
clean rebuilds in one after I had worked in the other. It can be annoying.

On Friday, May 11, 2012 5:17:09 AM UTC-4, Kostya Vasilyev wrote:

 Jacob, 

 Eclipse and Ant builds use the same working directories by default, I'm 
 sure you've already found this out. 

 Don't know about you, but it struck me as being somewhat weird when I 
 started using Ant for my projects. I made some changes to the build 
 scripts to place all Ant related files into their own directory (for me 
 it's under ant in the project directory, e.g. ant/gen, ant/bin, 
 etc.). 

 Perhaps you could do the same or file a feature request. 

 -- K 

 11.05.2012 13:02, Jacob Abrams написал: 
  
  
  If you then go ahead and build the same project with Ant in the 
  commandline, the new incremental checks in the Android Ant build 
  script will see that it is already been compiled, skip that step and 
  use these class files in the generated APK. Resulting in runtime errors. 

 -- 
 Kostya Vasilyev 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Don't mix Ant and Eclipse!

2012-12-06 Thread Latimerius
Try putting

out.dir=your_ant_bin_directory

in ant.properties or build.properties (one is old and the other is
new, I always forget which is which).  With this set I never had a
problem with a corrupted build, although I do find that Eclipse builds
fail to update the generated Build class.  That is, if I build release
with ant (so the generated class has Build.DEBUG==false) then go to
Eclipse and build debug I get a debug binary with conditional features
corresponding to a release build.

Come to think of it (and re-reading Kostya's post) this would probably
be fixed if I set ant to use its own gen/ directory, too - which I'm
not sure how to do at the moment.


On Thu, Dec 6, 2012 at 5:15 PM, moose moussa.m...@gmail.com wrote:
 Kostya, could you give us some details on how you did that?

 I run ant and eclipse side by side and run into issues where I need to do
 clean rebuilds in one after I had worked in the other. It can be annoying.


 On Friday, May 11, 2012 5:17:09 AM UTC-4, Kostya Vasilyev wrote:

 Jacob,

 Eclipse and Ant builds use the same working directories by default, I'm
 sure you've already found this out.

 Don't know about you, but it struck me as being somewhat weird when I
 started using Ant for my projects. I made some changes to the build
 scripts to place all Ant related files into their own directory (for me
 it's under ant in the project directory, e.g. ant/gen, ant/bin,
 etc.).

 Perhaps you could do the same or file a feature request.

 -- K

 11.05.2012 13:02, Jacob Abrams написал:
 
 
  If you then go ahead and build the same project with Ant in the
  commandline, the new incremental checks in the Android Ant build
  script will see that it is already been compiled, skip that step and
  use these class files in the generated APK. Resulting in runtime errors.

 --
 Kostya Vasilyev

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Don't mix Ant and Eclipse!

2012-05-11 Thread Jacob Abrams
Firstly thank you Android build system engineers for adding incremental 
building to the build system, this is a hard problem and your work here is 
appreciated. Now on to the major issue I just spent the evening debugging:

When you combine eclipse with the command line Ant build you may get 
runtime errors in your APK! If you are using eclipse and it can't build one 
of your library projects because the java source has compilation errors 
Eclipse will go ahead and make class files anyway! The methods in these 
class files will be filled with junk like:

throw new Error(Unresolved compilation problem: \n);

If you then go ahead and build the same project with Ant in the 
commandline, the new incremental checks in the Android Ant build script 
will see that it is already been compiled, skip that step and use these 
class files in the generated APK. Resulting in runtime errors.

Jacob Abrams

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Don't mix Ant and Eclipse!

2012-05-11 Thread Kostya Vasilyev

Jacob,

Eclipse and Ant builds use the same working directories by default, I'm 
sure you've already found this out.


Don't know about you, but it struck me as being somewhat weird when I 
started using Ant for my projects. I made some changes to the build 
scripts to place all Ant related files into their own directory (for me 
it's under ant in the project directory, e.g. ant/gen, ant/bin, etc.).


Perhaps you could do the same or file a feature request.

-- K

11.05.2012 13:02, Jacob Abrams написал:



If you then go ahead and build the same project with Ant in the 
commandline, the new incremental checks in the Android Ant build 
script will see that it is already been compiled, skip that step and 
use these class files in the generated APK. Resulting in runtime errors.


--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en