appcelerator/alloy — pull request #587 by tstatler (2014-10-11 18:57:43+00:00)
Title: [ALOY-1157] Delayed copying of project template files

https://jira.appcelerator.org/browse/ALOY-1157

This PR addresses an issue with the `alloy new --testapp` option where some assets and style files from the specified test app were missing from the generated Alloy project folder. The reason was that the source project's Resources folders and global app.tss file were getting copied to the project folder after those from the specified testapp.

### Verification

Create a new Alloy app from the advanced/android_density test app, and run it on an Android device/sim.
```
$ titanium create --name=appname --id=com.domain.appname --platforms=all
$ cd appname
$ alloy new . --testapp advanced/android_density
```

Verify that the generated Alloy project's `app/assets/android/images` folder contains `res-hdpi`, `res-ldpi`, `res-mdpi`, and `res-xhdpi` folders that each contain theImage.png files:

```
├── app
│ ├── README
│ ├── alloy.js
│ ├── assets
│ │ ├── android
│ │ │ ├── appicon.png
│ │ │ ├── default.png
│ │ │ └── images
│ │ │ ├── res-hdpi
│ │ │ │ └── theImage.png
│ │ │ ├── res-ldpi
│ │ │ │ └── theImage.png
│ │ │ ├── res-long-land-hdpi
│ │ │ │ └── default.png
│ │ │ ├── res-long-land-ldpi
│ │ │ │ └── default.png
│ │ │ ├── res-long-land-mdpi
...................................................................
│ │ │ └── res-xhdpi
│ │ │ └── theImage.png
```