title: How to patch classes in different modules at once - Java 9 - Jigsaw
body: <p>Say I have the following directory structure, each package having several java class files.</p>
  
  <pre><code>src
  +- classes
     +- java
        +- io
        +- lang
        +- util
            +- function
            +- logging
                +- FileHandler.java
  </code></pre>
  
  <p>So according <a href="http://openjdk.java.net/projects/jigsaw/quick-start" rel="nofollow noreferrer">Java Platform Module System (JPMS)</a>:</p>
  
  <ul>
  <li><code>java.util</code> exists in <code>java.base</code></li>
  <li><code>java.util.logging</code> exists in <code>java.logging</code></li>
  <li><code>java.util.function</code> exists in <code>java.base</code></li>
  </ul>
  
  <p>There are examples on overriding single file, like:</p>
  
  <pre><code>   javac --patch-module java.base=src -d mypatches/java.base \
          src/java.base/java/util/concurrent/ConcurrentHashMap.java
  </code></pre>
  
  <p>Is there convenient way to do this when there are several files which belongs to different modules?</p>