Comments (3)
Isn't it kind of an anti-pattern to include libraries as sources? As to why I think it couldn't be one file, AsyncReaderRecorder and PowerShell are very different classes and wouldn't fit well together.
from powershelllibjava.
It might be an anti-pattern indeed.
My purpose is to follow a zero-dependency policy in my libraries.
Therefore I need to repackage the dependencies of my libraries.
I've tried maven shade plugin. This plugin relocates dependencies by modifiying byte code directly. Unfortunatly, it doesn't repackage module-info classes (JPMS).
The second solution I've found so far is to to automate source extraction of dependecies to a second source directory before the compilation of all the source code (lib + dependencies). Having a single source file eases this.
AsyncReaderRecorder
and PowerShell
are indeed very different classes. My guess is that AsyncReaderRecorder
could be moved into PowerShell
as a private class if it has no use outside of the library itself.
from powershelllibjava.
Ok, I see. Your use case is quite special. Unfortunately I have no interest in changing the architecture of this library, as it fits most use cases just fine. The best solution would probably be to include all 3 files as source. Or I guess you could create something that packs everything into one class as inner classes.
from powershelllibjava.
Related Issues (13)
- Maven central repository HOT 2
- handling output HOT 4
- Closing Session HOT 1
- Performance down when used in parallel HOT 2
- Strange behavior of ProcessBuilder HOT 12
- PSReadLine headache?
- Exception is not handled properly HOT 3
- Need to synchronize executecommands HOT 2
- Add Automatic-Module-name in MANIFEST
- Exceptions HOT 1
- Does not work for "git am" commands
- Can't get output if there is an error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershelllibjava.