dmssargent / stubjars Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Can we set StubJars.numberOfCompilerThreads
to Runtime.getRuntime().availableProcessors()
?
We should probably make sure that this is an actual improvement before actually releasing a new version with this change.
Right now, running StubJars twice in a row will produce two different JAR files. It would be much better if running StubJars always produced identical output for a given input. It would enable us to run StubJars as a part of the normal FTC SDK build process, without cluttering up the Git history when no changes are made.
Specifically, StubJars seems to be inconsistent with how it orders fields. Additionally, every file in the JAR is timestamped with the real date. We should probably use a hardcoded date instead (Jan 1, 1970?).
Public static fields are useful for stubbing, because they often contain constant values that are useful to use in a program. Commenting out https://github.com/dmssargent/StubJars/blob/develop/src/main/java/davidsar/gent/stubjars/components/JarClass.java#L348 seems to do the trick at first test, so I'm not sure why public static fields were ever filtered out to begin with.
@dmssargent I'd like to make this change for a FIRST Global release, but it appears that the source for the latest version of StubJars (alpha 4) is not available publicly. Can you get the source for alpha 4 published so that I can make this modification on top of that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.