title: Get the base package in Java project
body: <p>How do I programmatically get the base package of a Java project?</p>
  
  <p>For example I have the following:</p>
  
  <pre><code>my-app
  - src
   - main
    - java
     - hello
      - world
       - util
       - exception
       - misc
  </code></pre>
  
  <p>I want to get: <code>hello.world</code>.</p>
  
  <p>Thank you.</p>