code: func WriteJavaProjectToPackage(tw *tar.Writer, srcPath string) error {
  
  	vmLogger.Debugf("Packaging Java project from path %s", srcPath)
  
  	if err := WriteFolderToTarPackage(tw, srcPath, []string{"target", "build", "out"}, nil, javaExcludeFileTypes); err != nil {
  
  		vmLogger.Errorf("Error writing folder to tar package %s", err)
  		return err
  	}
  	// Write the tar file out
  	if err := tw.Close(); err != nil {
  		return err
  	}
  	return nil
  
  }
docs: //Package Java project to tar file from the source path