Eclipse file generation script#1
Conversation
There was a problem hiding this comment.
Is there any chance you can make the Linux x86_64 binary come directly from the vendor, as a separate download?
There was a problem hiding this comment.
On sourceforge there is only the 32 bit version. I can bundle the 64 bit version into this tar file instead, and the project could just require a 64 bit architecture to build.
|
Your script is not really integrated into the |
There was a problem hiding this comment.
I don't think AutoValue generates files in bazel-genfiles/. Those files get generated directly into the jars.
You're probably better off allowing Eclipse to generate the AutoValue / Dagger / etc. magic code on its own, by manually adding the AV / Dagger / etc. jars to the project config for annotation processing.
There was a problem hiding this comment.
That does sound like a better route.
|
"Your script is not really integrated into the eclipse package. For example, it doesn't have a py_binary() rule. Maybe it would be more appropriate if this script was homed in the root project folder. Then you could easily dip into bazel-genfiles/." - I'm not familiar with the eclipse integration or py_binary(). For the genfiles folder, it's easy to get with |
|
I think I see what you mean now, but it looks like py_binary() would be bazel integration? |
|
QQ: is this mailing list the official github communications channel? If so, On Fri, Mar 4, 2016 at 1:42 PM, Wolfgang Meyers notifications@github.com
|
|
Unfortunately, no. I don't think it's possible to have GitHub notifications show a special header. But we can go back and delete GitHub comments if we need to. |
|
Merge conflicts are resolved. Anything else that I should change on this? |
There was a problem hiding this comment.
Remove this line. It's the same as appengine-api-link except it's meant for unit tests.
|
This PR looks great. In a few hours, someone else from the team with Python readability is going to take a look. Sorry for the additional torture. But this is a good GitHub training opportunity. |
There was a problem hiding this comment.
Prefer check_call() and let the exception happen, here and throughout.
|
@jart bazel-genfiles/javatests isn't generated during the build - causes an error if I include it. Not sure why this didn't happen earlier, but I plan to revert that with the next push. |
|
Another issue is that this code overwrites .settings/org.eclipse.jdt.core.prefs - if you import a code formatter, a lot of settings are dumped into this file. |
|
I'd recommend adding a big |
|
Another issue I've noticed - there are a few classes generated that end in Factory_Factory - like RydePgpCompressionOutputStreamFactory_Factory. Although these are generated correctly by the annotation processors during the bazel build, they are not in eclipse, and nothing in the error logs suggests why. I do see errors like: |
|
Those classes are generated by Dagger on code that's generated by On Tue, Mar 8, 2016 at 6:22 PM Wolfgang Meyers notifications@github.com
|
|
Hmm good point, I do not have the latest version. |
|
FWIW, LGTM for readability ... |
|
LGTM. Please squash and I'll merge. |
Simple python script to generate the .project and .classpath files for eclipse. The script bundles all jar dependencies into a single jar file, collects all auto-generated java files into a single source folder and adds them to the eclipse classpath.
|
Done. |
|
Thank you so much for your contribution @wolfgangmeyers |
|
Unfortunately @CydeWeys the Google Python Style Guide externally is changed to be four spaces: https://google.github.io/styleguide/pyguide.html#Indentation I know. I know… We discussed this earlier and I ended up capitulating. Mostly because I don't really use Python. You would have noticed that discussion if GitHub hadn't collapsed it 😦 |
This won't do anything until we set the migration schedule to DATASTORE_PRIMARY. Actions in order: 1. Add this cron job (it'll be a no-op) 2. Run the init-sql-pipeline to populate production's SQL DB 3. Set the SqlReplayCheckpoint to a time before the smear backup that was used in step google#1 (maybe 30 minutes) 4. Set the database migration schedule to transition to DATASTORE_PRIMARY at some point
This won't do anything until we set the migration schedule to DATASTORE_PRIMARY. Actions in order: 1. Add this cron job (it'll be a no-op) 2. Run the init-sql-pipeline to populate production's SQL DB 3. Set the SqlReplayCheckpoint to a time before the smear backup that was used in step google#1 (maybe 30 minutes) 4. Set the database migration schedule to transition to DATASTORE_PRIMARY at some point
* Add DS->SQL replay cron job to production This won't do anything until we set the migration schedule to DATASTORE_PRIMARY. Actions in order: 1. Add this cron job (it'll be a no-op) 2. Run the init-sql-pipeline to populate production's SQL DB 3. Set the SqlReplayCheckpoint to a time before the smear backup that was used in step #1 (maybe 30 minutes) 4. Set the database migration schedule to transition to DATASTORE_PRIMARY at some point

Simple python script to generate the .project and .classpath files
for eclipse. The script bundles all jar dependencies into a single
jar file, collects all auto-generated java files into a single
source folder and adds them to the eclipse classpath.