# How to build processing with sources?

**URL:** <https://discourse.processing.org/t/how-to-build-processing-with-sources/14285>\
**Category:** Development\
**Created:** [September 29, 2019, 4:32pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285 "2019-09-29T16:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [September 29, 2019, 4:32pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285/1 "2019-09-29T16:32:57Z")

</div>

I really like having a jar with the sources so I can jump to the code.  
However, I can’t just get it done, and the last one on maven that has sources is really outdated.

Here more about it:

> <https://github.com/processing/processing/issues/5798#issuecomment-475611795>

someone please help.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [September 29, 2019, 5:05pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285/2 "2019-09-29T17:05:35Z")

</div>

There is a link on this page:

> **[processing/processing](https://github.com/processing/processing)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

And links to this:

> **[processing/processing](https://github.com/processing/processing/wiki/Build-Instructions)**
>
> Source code for the Processing Core and Development Environment (PDE) - processing/processing

I have modified Processing in the past to make it “portable”.

🙂

---

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [September 29, 2019, 5:50pm UTC](https://discourse.processing.org/t/how-to-build-processing-with-sources/14285/3 "2019-09-29T17:50:21Z")

</div>

I finally got it:

In `processing/core/build.xml`:  
Change the last target to:

```auto
<target name="build" depends="compile" description="Build core library">
    <jar basedir="bin" destfile="library/core.jar"> 
    </jar>
    <jar basedir="bin" destfile="library/core-sources.jar"> 
      <fileset dir="src" includes="**/*.java"/>
    </jar>
  </target>

```
