GithubHelp home page GithubHelp logo

Comments (10)

rgladwell avatar rgladwell commented on May 18, 2024

Example contents of ADT-generated default.properties file:

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-7

from android-archetypes.

cescoffier avatar cescoffier commented on May 18, 2024

Hi,

Right, this file is Eclipse specific no? I will definitely create them, but I need to know several details first:

  • Where do we need it (all projects, test projects too) ?
  • Can I make the assumption that the target value is always 'android-VERSION' ?

Thanks,

Clement

from android-archetypes.

rgladwell avatar rgladwell commented on May 18, 2024

The default.properties is defined here:

http://developer.android.com/guide/developing/eclipse-adt.html#CreatingAProject

Looks as though it's needed for all projects. As for the format assumption, I cannot confirm: as per usual, Google have not specified the syntax for this file. I believe you just need the line "target=android-PLATFORM" but without digging deep into the ADT source code I can't confirm.

from android-archetypes.

cescoffier avatar cescoffier commented on May 18, 2024

Hi,

I've updated the quickstart archetype with the default.properties file. Could you check?

from android-archetypes.

rgladwell avatar rgladwell commented on May 18, 2024

Having trouble getting m2eclipse to detect the SNAPSHOT plugin. I do the following:

  1. Run mvn install on latest pull from android-archetypes
  2. In Eclipse select File -> New -> Project...
  3. Select Maven -> Maven Project and click "Next"
  4. Click "Next" again
  5. Select "Default Local" catlog
  6. Check "Include snapshot archetypes" checkbox.
  7. Click "Add Archetype..."
  8. In Archetype Group Id enter "de.akquinet.android.archetypes"
  9. In Archetype Artifact Id" enter "android-quickstart"
  10. In Archetype Version enter "1.5.0-SNAPSHOT"
  11. Click "OK"

Get "Can't resolve Archetype de.akquinet.android.archetypes:android-quickstart:1.5.0-SNAPSHOT org.eclipse.core.runtime.CoreException: Could not resolve artifact" error message.

from android-archetypes.

cescoffier avatar cescoffier commented on May 18, 2024

Hi,

should be 1.0.5-SNAPSHOT no ?
You also need to 'crawl' you local repository: mvn archetype:crawl
This command build the archetype-catalog for you local maven repository

from android-archetypes.

rgladwell avatar rgladwell commented on May 18, 2024

Just verified, works with m2eclipse-android-integration after you run a Maven -> Update Project Configuration. It would be nice to modify m2eclipse-android-integration so it detects an Android project has been created and auto-self-configures.

Thanks for that, please let me know when you release.

from android-archetypes.

cescoffier avatar cescoffier commented on May 18, 2024

Great, I've also added the file to the with-test and release archetypes. I should be released today.

from android-archetypes.

cescoffier avatar cescoffier commented on May 18, 2024

Released and is now in central (1.0.5)

from android-archetypes.

rgladwell avatar rgladwell commented on May 18, 2024

Fantastic, thanks for that.

from android-archetypes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.